Skip to content

Commit

Permalink
update to work with latest ghc, cabal packages
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWheat committed Jan 8, 2024
1 parent a937424 commit 6957a39
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ build-haddock :
# todo: handle the deps properly
rm -Rf build/haddock
mkdir build/haddock/

#GHC_VER="$(shell ghc --numeric-version)"
# wtf
$(eval GHC_VER="$(shell ghc --numeric-version)")
cp -R dist-newstyle/build/x86_64-linux/ghc-${GHC_VER}/simple-sql-parser-0.6.0/doc/html/simple-sql-parser/* build/haddock/
$(eval SSP_VER="$(shell cat simple-sql-parser.cabal |grep -P '^version:' | awk '{print $$2}')")
cp -R dist-newstyle/build/x86_64-linux/ghc-${GHC_VER}/simple-sql-parser-${SSP_VER}/doc/html/simple-sql-parser/* build/haddock/
6 changes: 3 additions & 3 deletions simple-sql-parser.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ common shared-properties
default-language: Haskell2010
build-depends: base >=4 && <5,
parsec >=3.1 && <3.2,
mtl >=2.1 && <2.3,
mtl >=2.1 && <2.4,
pretty >= 1.1 && < 1.2

ghc-options: -Wall
Expand All @@ -62,7 +62,7 @@ Test-Suite Tests
main-is: RunTests.lhs
hs-source-dirs: tools
Build-Depends: simple-sql-parser,
tasty >= 1.1 && < 1.5,
tasty >= 1.1 && < 1.6,
tasty-hunit >= 0.9 && < 0.11

Other-Modules: Language.SQL.SimpleSQL.ErrorMessages,
Expand Down Expand Up @@ -108,7 +108,7 @@ executable Fixity
hs-source-dirs: tools
Build-Depends: simple-sql-parser,
pretty-show >= 1.6 && < 1.10,
tasty >= 1.1 && < 1.5,
tasty >= 1.1 && < 1.6,
tasty-hunit >= 0.9 && < 0.11
if flag(fixitytest)
buildable: True
Expand Down
1 change: 1 addition & 0 deletions website/RenderTestCases.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Converts the test data to asciidoc
> import Language.SQL.SimpleSQL.Parse
> import Language.SQL.SimpleSQL.Lex
> import Data.List
> import Control.Monad (when, unless)

> data TableItem = Heading Int String
> | Row String String
Expand Down

0 comments on commit 6957a39

Please sign in to comment.