Copyright | BSD |
---|---|
Maintainer | ylilarry@gmail.com |
Stability | Experimental |
Portability | Non-portable (GHC extensions) |
Safe Haskell | Safe |
Language | Haskell2010 |
Syntax.ListWriter
Description
This package allows you to define a list constant using Monadic syntax.
It can be used to define a list constant in your program in a better looking syntax than overhead [
, ]
, and ,
.
Other than that the package is not really useful.
Example
listA :: [Int] listA = toList $ do element 1 element 2 element 3
>>>
print listA
[1,2,3]