Skip to content

Commit

Permalink
Remove Stack
Browse files Browse the repository at this point in the history
We can build without Stack and it feels nice to not be dependent on
another tool built on top of another tool etc.

Massage some versions of dependencies and some datetime formatting code
to make everything work with the versions of the dependencies installed.
  • Loading branch information
Rembane committed Sep 25, 2023
1 parent 73b474e commit 7abe33e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ cabal.sandbox.config
.*.swp
*.log
*.dump-hi
dist-newstyle/
18 changes: 9 additions & 9 deletions mat-chalmers.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@ library

build-depends: aeson
, attoparsec
, base >=4.7
, base >=4.9
, bytestring >=0.10.8.2 && <0.12
, css-text
, exceptions == 0.10.4
, heredoc == 0.2.0.0
, http-client
, http-client-tls == 0.3.5.3
, logging-effect == 1.3.12
, http-client-tls >= 0.3.6.3 && <= 0.4
, logging-effect >= 1.4.0 && <= 2.0
, microlens-platform
, lucid >= 2
, mtl == 2.2.2
, old-locale == 1.0.0.7
, prettyprinter == 1.7.1
, safe == 0.3.19
, tagsoup == 0.14.8
, text == 1.2.4.1
, bytestring == 0.10.12.0
, text >= 2.0 && <= 3.0
, file-embed
, thyme
, word8 == 0.1.3
Expand All @@ -55,26 +55,26 @@ executable mat-chalmers
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Werror -Wunused-binds -Wunused-imports -Wcompat
hs-source-dirs: app
build-depends: mat-chalmers
, base >= 4.7
, base >= 4.9
, bytestring
, file-embed
, http-client-tls == 0.3.5.3
, http-client-tls
, microlens-platform
, logging-effect
, mtl
, scotty
, time == 1.9.3
, wai-extra
, wai-middleware-static-embedded == 0.1.0.0
, async >= 2.1.1
, async >= 2.2.4 && <= 3.0
default-language: Haskell2010

Test-Suite test-mat
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: test
default-language: Haskell2010
build-depends: base >= 4.7
build-depends: base >= 4.9
, bytestring
, mat-chalmers
, hspec == 2.7.10
Expand Down
4 changes: 2 additions & 2 deletions src/View.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ where
import Data.FileEmbed
import qualified Data.Text.Lazy as T
import qualified Data.Text.Lazy.Builder as T
import Data.Thyme
import Data.Thyme ( defaultTimeLocale
, formatTime )
import Lens.Micro.Platform ( (&)
, (%~)
, both
)
import Lucid
import System.Locale ( defaultTimeLocale )
import qualified Text.CSS.Parse as CSS
import qualified Text.CSS.Render as CSS

Expand Down
8 changes: 0 additions & 8 deletions stack.yaml

This file was deleted.

0 comments on commit 7abe33e

Please sign in to comment.