rebindable 0.1.1 → 0.1.2
raw patch · 2 files changed
+34/−1 lines, 2 files
Files
- README.md +30/−0
- rebindable.cabal +4/−1
+ README.md view
@@ -0,0 +1,30 @@+# rebindable++[](https://hackage.haskell.org/package/rebindable)++A library to facilitate rebinding of syntax.++## Example:++```haskell+{-# 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+```
rebindable.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: rebindable-version: 0.1.1+version: 0.1.2 synopsis: A library to facilitate rebinding of Haskell syntax description: A library to facilitate rebinding of Haskell syntax category: Syntax@@ -14,6 +14,9 @@ license: MIT build-type: Simple cabal-version: >= 1.10++extra-source-files:+ README.md source-repository head type: git