Skip to content

Commit

Permalink
crucible-llvm-syntax: Add type signature for GHC 8.10 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Nov 1, 2023
1 parent abac7c9 commit bb3501b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crucible-llvm-syntax/src/Lang/Crucible/LLVM/Syntax.hs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ llvmTypeParser = Parse.describe "LLVM type" $ Parse.call ptrType
let ptrName = do
s <- Parse.atomName
unless (s == Atom.AtomName "Ptr") Parse.cut
let ptrWidth = do
let -- This type signature is needed for GHC 8.10
ptrWidth :: MonadSyntax Atomic m => m (Some TypeRepr)
ptrWidth = do
Parse.BoundedNat n <- Parse.posNat
pure (Some (LLVMPointerRepr n))
unary ptrName ptrWidth
Expand Down

0 comments on commit bb3501b

Please sign in to comment.