Skip to content

Commit 9ad50cf

Browse files
committed
Change 'data Compose f g a' to 'newtype Compose f g a'
1 parent 3a439f8 commit 9ad50cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FunctorAlg.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ instance (Applicative f, Applicative g, Natural g f)
104104
InR gf <*> InL fa = InL (eta gf <*> fa)
105105

106106
-- | Compose functor f and g
107-
data Compose f g a = Compose (f (g a))
107+
newtype Compose f g a = Compose (f (g a))
108108
deriving Show
109109
infixr 9 :.:
110110
type (:.:) = Compose

0 commit comments

Comments
 (0)