Skip to content

Commit 2af0f48

Browse files
committed
Merge pull request #14 from jdegoes/externs-fix
Externs fix
2 parents 4b7db09 + 581ffcf commit 2af0f48

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

MODULE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@
8585

8686
### Types
8787

88-
data Cofree f a
88+
data Cofree f a where
89+
Cofree :: a -> Trampoline (f (Cofree f a)) -> Cofree f a
8990

9091

9192
### Type Class Instances

src/Control/Comonad/Cofree.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Control.Comonad.Cofree
2-
( Cofree()
2+
( Cofree(..) -- FIXME: Purescript error (can't infer kinds in externs unless constructor exported)
33
, mkCofree
44
, head
55
, tail

0 commit comments

Comments
 (0)