The rebindable package

[Tags:library, mit]

A library to facilitate rebinding of Haskell syntax


[Skip to Readme]

Properties

Versions 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 repository head: git clone https://github.com/sleexyz/rebindable
Uploaded Sun Nov 20 09:51:02 UTC 2016 by sleexyz
Distributions NixOS:0.1.2
Downloads 78 total (1 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for rebindable

Readme for rebindable-0.1.2

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