Skip to content

Commit

Permalink
accept tests (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheaf committed Dec 27, 2024
1 parent 171583a commit 954726d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
11 changes: 9 additions & 2 deletions hs-bindgen/fixtures/macro_functions.hs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,15 @@
(TyConAppTy
(ATyCon
(GenerativeTyCon
(DataTyCon BoolTyCon)))
[]))}},
(DataTyCon IntLikeTyCon)))
[
TyConAppTy
(ATyCon
(GenerativeTyCon
(DataTyCon
(IntLikeTyCon
(_×_ PrimInt Signed)))))
[]]))}},
varDeclBody = VarDeclLambda
(Lambda
(NameHint "x")
Expand Down
2 changes: 1 addition & 1 deletion hs-bindgen/fixtures/macro_functions.pp.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ iD = \x0 -> x0
cONST :: forall a0 b1. a0 -> b1 -> a0
cONST = \x0 -> \y1 -> x0

cMP :: forall a0 b1. (C.RelOrd a0) b1 => a0 -> b1 -> FC.CBool
cMP :: forall a0 b1. (C.RelOrd a0) b1 => a0 -> b1 -> FC.CInt
cMP = \x0 -> \y1 -> (<) x0 y1

fUN1 :: forall a0 b1. (C.Add a0) ((C.MultRes FC.CULLong) b1) => (C.Mult FC.CULLong) b1 => a0 -> b1 -> (C.AddRes a0) ((C.MultRes FC.CULLong) b1)
Expand Down
2 changes: 1 addition & 1 deletion hs-bindgen/fixtures/macro_functions.th.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ iD :: forall a_0 . a_0 -> a_0
iD = \x_0 -> x_0
cONST :: forall a_0 b_1 . a_0 -> b_1 -> a_0
cONST = \x_0 -> \y_1 -> x_0
cMP :: forall a_0 b_1 . RelOrd a_0 b_1 => a_0 -> b_1 -> CBool
cMP :: forall a_0 b_1 . RelOrd a_0 b_1 => a_0 -> b_1 -> CInt
cMP = \x_0 -> \y_1 -> (<) x_0 y_1
fUN1 :: forall a_0 b_1 . (Add a_0 (MultRes CULLong b_1),
Mult CULLong b_1) =>
Expand Down
2 changes: 1 addition & 1 deletion hs-bindgen/fixtures/macro_functions.tree-diff.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ WrapCHeader
MTerm (MVar (CName "X") []),
MTerm (MVar (CName "Y") [])]},
macroDeclMacroTy =
"(forall a b. RelOrd a b => (a -> b -> Bool))",
"(forall a b. RelOrd a b => (a -> b -> IntLike (PrimInt,Signed)))",
macroDeclSourceLoc = SingleLoc {
singleLocPath = [
"examples",
Expand Down

0 comments on commit 954726d

Please sign in to comment.