The rebindable package

[Tags:library, mit]

A library to facilitate rebinding of Haskell syntax

[Skip to Readme]


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 <>
Category Syntax
Home page
Bug tracker
Source repository head: git clone
Uploaded Sun Nov 20 09:51:02 UTC 2016 by sleexyz
Distributions NixOS:0.1.2
Downloads 111 total (20 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for rebindable

Readme for rebindable-0.1.2


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