Add llvm-hs-pretty package
Fix prettyprinter version conflict
This commit is contained in:
parent
d558831984
commit
37cf2fe339
7
cabal.project
Normal file
7
cabal.project
Normal file
@ -0,0 +1,7 @@
|
||||
-- Needed to get a working version of llvm-hs-pretty
|
||||
-- The one on hackage is broken with this version of GHC
|
||||
source-repository-package
|
||||
type: git
|
||||
location: https://github.com/rumkeller/llvm-hs-pretty.git
|
||||
|
||||
packages: ./windows12.cabal
|
@ -3,7 +3,7 @@
|
||||
module Main where
|
||||
|
||||
import qualified Data.Text.IO as T
|
||||
import Prettyprinter
|
||||
import Data.Text.Prettyprint.Doc (pretty)
|
||||
import Text.Megaparsec (parse)
|
||||
import Windows12.Parser (programP)
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
module Windows12.Ast where
|
||||
|
||||
import Data.Text (Text)
|
||||
import Prettyprinter
|
||||
import Data.Text.Prettyprint.Doc
|
||||
|
||||
data BinOp
|
||||
= Add
|
||||
|
@ -76,10 +76,11 @@ executable windows12
|
||||
build-depends:
|
||||
base >= 4.15.1 && < 4.16,
|
||||
llvm-hs-pure >= 9.0.0 && < 9.1,
|
||||
llvm-hs-pretty >= 0.9.0 && < 0.10,
|
||||
megaparsec >= 9.6.1 && < 9.7,
|
||||
text >= 1.2.5 && < 1.3,
|
||||
parser-combinators >= 1.3.0 && < 1.4,
|
||||
prettyprinter >= 1.7.1 && < 1.8,
|
||||
prettyprinter >= 1.5.1 && < 1.6,
|
||||
|
||||
-- Directories containing source files.
|
||||
hs-source-dirs: src
|
||||
|
Loading…
x
Reference in New Issue
Block a user