rebindable: A library to facilitate rebinding of Haskell syntax

[ library, mit, syntax ] [ Propose Tags ]

A library to facilitate rebinding of Haskell syntax

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • 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 <>
Category Syntax
Home page
Bug tracker
Source repo head: git clone
Uploaded by sleexyz at 2016-11-20T09:51:02Z
Distributions NixOS:0.1.2
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2187 total (9 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]


Hackage Status

A library to facilitate rebinding of syntax.


{-# 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