Diff: [root] @ e73bf9d11fb | faq | css

another nicey

File: code/hjpath [Diff]

diff --git a/code/hjpath b/code/hjpath
index 8402bfe..b5dedf1 100644
-- a/code/hjpath
++ b/code/hjpath
@@ -21,6 +21,8 @@ Since 3.0, you can also avoid string queries and compose them using Haskell:

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

File: haskell-sucks [Diff]

diff --git a/haskell-sucks b/haskell-sucks
index af70d36..44a1167 100644
-- a/haskell-sucks
++ b/haskell-sucks
@@ -45,6 +45,12 @@ bc. vt ->redMask= 666

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.

By Voker57 on 2010-06-07 11:49:39 +0400 Powered by bitcheese wiki engine