Popularity
7.6
Declining
Activity
0.0
Stable
30
8
2
Monthly Downloads: 19
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Latest version: v0.1.4
monad-skeleton alternatives and similar packages
Based on the "monad" category.
Alternatively, view monad-skeleton alternatives based on common mentions on social networks and blogs.
-
monad-validate
DISCONTINUED. (NOTE: REPOSITORY MOVED TO NEW OWNER: https://github.com/lexi-lambda/monad-validate) A Haskell monad transformer library for data validation -
monad-io-adapter
DISCONTINUED. A Haskell package that adapts between MonadIO and MonadBase IO [GET https://api.github.com/repos/cjdev/monad-io-adapter: 404 - Not Found // See: https://docs.github.com/rest/repos/repos#get-a-repository]
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
Promo
coderabbit.ai

Do you think we are missing an alternative of monad-skeleton or a related project?
README
monad-skeleton
This package provides Skeleton
, an operational monad. The internal encoding
gives O(1) bind and monadic reflection.
Skeleton
promotes unit instructions to a monad. It is isomorphic to
MonadView (Skeleton t)
:
data MonadView t m x where
Return :: a -> MonadView t m a
(:>>=) :: !(t a) -> (a -> m b) -> MonadView t m b
boned :: MonadView t (Skeleton t) a -> Skeleton t a
debone :: Skeleton t a -> MonadView t (Skeleton t) a
GADTs are handy to define instructions:
data Interaction x where
Get :: Interaction String
Put :: String -> Interaction ()
echo :: Skeleton Interaction ()
echo = bone Get >>= bone . Put
Use debone
to interpret a computation.
interpret :: Skeleton Interaction a -> IO a
interpret m = case debone m of
Return a -> return a
Get :>>= k -> getLine >>= interpret . k
Put s :>>= k -> putStrLn s >>= interpret . k