Skip to content

Commit

Permalink
Fix typo in description of free applicatives (digital-asset#3438)
Browse files Browse the repository at this point in the history
  • Loading branch information
cocreature authored and mergify[bot] committed Nov 12, 2019
1 parent b3ae656 commit 4b2fa95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daml-script/daml/Daml/Script.daml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ instance Functor f => Action (Free f) where
Free x >>= f = Free ((>>= f) <$> x)

-- | A free applicative, since we don’t have existentials we have to use the weird RankNTypes encoding, this is isomorphic to
-- forall b. Ap f b (Ap f (b -> a))
-- forall b. Ap (f b) (Ap f (b -> a))
data Ap f a
= PureA a
| Ap (forall r. (forall b. f b -> Ap f (b -> a) -> r) -> r)
Expand Down

0 comments on commit 4b2fa95

Please sign in to comment.