Skip to content

Fix compiler warnings by adding kind annotations #1

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 29, 2020
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
1 change: 1 addition & 0 deletions src/Control/Comonad/Env/Trans.purs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import Data.Newtype (class Newtype)
-- | type `e`.
-- |
-- | The `ComonadEnv` type class describes the operations supported by this comonad.
newtype EnvT :: forall k. Type -> (k -> Type) -> k -> Type
newtype EnvT e w a = EnvT (Tuple e (w a))

-- | Unwrap a value in the `EnvT` comonad.
Expand Down
2 changes: 1 addition & 1 deletion src/Control/Monad/Cont/Trans.purs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Effect.Class (class MonadEffect, liftEffect)
-- | The CPS monad transformer.
-- |
-- | This monad transformer extends the base monad with the operation `callCC`.
newtype ContT :: forall k. k -> (k -> Type) -> Type -> Type
newtype ContT r m a = ContT ((a -> m r) -> m r)

-- | Run a computation in the `ContT` monad, by providing a continuation.
Expand Down Expand Up @@ -74,4 +75,3 @@ instance semigroupContT :: (Apply m, Semigroup a) => Semigroup (ContT r m a) whe

instance monoidContT :: (Applicative m, Monoid a) => Monoid (ContT r m a) where
mempty = pure mempty

1 change: 1 addition & 0 deletions src/Control/Monad/Identity/Trans.purs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import Effect.Class (class MonadEffect)
-- | This monad acts like a placeholder for functions that take a monad
-- | transformer as an argument, similar to `identity` for functions and
-- | `Identity` for monads.
newtype IdentityT :: forall k. (k -> Type) -> k -> Type
newtype IdentityT m a = IdentityT (m a)

-- | Run a computation in the `IdentityT` monad.
Expand Down
1 change: 1 addition & 0 deletions src/Control/Monad/Reader/Trans.purs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import Effect.Class (class MonadEffect, liftEffect)
-- | type `r`.
-- |
-- | The `MonadReader` type class describes the operations supported by this monad.
newtype ReaderT :: forall k. Type -> (k -> Type) -> k -> Type
newtype ReaderT r m a = ReaderT (r -> m a)

-- | Run a computation in the `ReaderT` monad.
Expand Down