Skip to content

Commit 33595ad

Browse files
garybethul
authored andcommitted
Use newtypes where possible
1 parent e8abb31 commit 33595ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Control/Monad/Trampoline.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Control.Monad.Trampoline where
22

33
import Control.Monad.Free
44

5-
data Delay a = Delay (Unit -> a)
5+
newtype Delay a = Delay (Unit -> a)
66

77
instance delayFunctor :: Functor Delay where
88
(<$>) f (Delay g) = Delay (const (f (g unit)))

0 commit comments

Comments
 (0)