another nicey
File: code/hjpath [Diff]
-- a/code/hjpath++ b/code/hjpath
@@ -21,6 +21,8 @@
bc. jPath [ArrayLookup 2] "[1,2,3]" -- ["3"]
For more info, refer to docs on hackage.
h2. Get it
* With "cabal-install":http://www.haskell.org/cabal/download.html: cabal install hjpath
-- a/haskell-sucks++ b/haskell-sucks
@@ -45,6 +45,12 @@
Where "->redMask=" is another postfix operator.
Also, you can get very nice runtime error if you write code like this
bc. data Type = Cons1 { prop1 :: Int }
| Cons2 {prop2 :: Int }
main = print $ prop2 $ Cons1 {prop1 = 0}
h2. base library sucks
Haskell has brilliant thing: infinite integral types.