Add llvm-hs-pretty package

Fix prettyprinter version conflict
This commit is contained in:
Ethan Girouard 2024-12-09 20:09:13 -05:00
parent d558831984
commit 37cf2fe339
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146
4 changed files with 11 additions and 3 deletions

7
cabal.project Normal file
View 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

View File

@ -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)

View File

@ -3,7 +3,7 @@
module Windows12.Ast where
import Data.Text (Text)
import Prettyprinter
import Data.Text.Prettyprint.Doc
data BinOp
= Add

View File

@ -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