Skip to content

Fix overly-applied synonyms #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Control/Comonad/Store.purs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Data.Tuple (Tuple(..), swap)

-- | The `Store` comonad is a synonym for the `StoreT` comonad transformer, applied
-- | to the `Identity` monad.
type Store s a = StoreT s Identity a
type Store s = StoreT s Identity

-- | Unwrap a value in the `Store` comonad.
runStore :: forall s a. Store s a -> Tuple (s -> a) s
Expand Down
2 changes: 1 addition & 1 deletion src/Control/Monad/Cont.purs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Data.Newtype (unwrap)

-- | The `Cont` monad is a synonym for the `ContT` monad transformer applied to
-- | the `Identity` monad.
type Cont r a = ContT r Identity a
type Cont r = ContT r Identity

-- | Creates a computation in the `Cont` monad.
cont :: forall a r. ((a -> r) -> r) -> Cont r a
Expand Down
2 changes: 1 addition & 1 deletion src/Control/Monad/Except.purs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import Data.Newtype (unwrap)
-- | further and adds the possibility of a computation failing with an 'empty'
-- | exception; naturally, this requires the stronger constraint of a `Monoid`
-- | instance for the exception type.
type Except e a = ExceptT e Identity a
type Except e = ExceptT e Identity

-- | Run a computation in the `Except` monad. The inverse of `except`.
runExcept :: forall e a. Except e a -> Either e a
Expand Down