rebindable: A library to facilitate rebinding of Haskell syntax

[ library, mit, syntax ] [ Propose Tags ] [ Report a vulnerability ]

A library to facilitate rebinding of Haskell syntax


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0, 0.1.1, 0.1.2
Dependencies base (>=4.9 && <5), data-default-class, indexed [details]
License MIT
Author Sean Lee
Maintainer Sean Lee <freshdried@gmail.com>
Category Syntax
Home page https://github.com/sleexyz/rebindable
Bug tracker https://github.com/sleexyz/rebindable/issues
Source repo head: git clone https://github.com/sleexyz/rebindable
Uploaded by sleexyz at 2016-11-20T09:51:02Z
Distributions NixOS:0.1.2
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2241 total (13 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for rebindable-0.1.2

[back to package description]

rebindable

Hackage Status

A library to facilitate rebinding of syntax.

Example:

{-# LANGUAGE RebindableSyntax #-}
{-# LANGUAGE RecordWildCards #-}

module Example where

import Control.Monad.Indexed
import Control.Monad.Indexed.State
import Control.Monad.Indexed.Trans
import Control.Monad.IO.Class
import Prelude

import qualified Language.Haskell.Rebindable as Use
import Data.Default

foo :: IxStateT IO String Int ()
foo = let Use.IxMonad{..} = def in do
  ilift . liftIO . print =<< iget

  imodify (length)
  ilift . liftIO . print =<< iget