This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.jerf.org/iri/post/2908 | |
http://mwotton.github.com/hs_gbu/ | |
http://reddit.com/r/haskell/comments/y6i7d/do_we_have_real_world_examples_of_where_static/ | |
http://reddit.com/r/haskell/comments/12e3a0/the_good_the_bad_and_the_ugly_haskell_in/ | |
http://blog.codersbase.com/2010/09/composability-laziness-testing-and.html | |
https://www.fpcomplete.com/user/imalsogreg/functional-programming-elevator-pitch | |
http://evincarofautumn.blogspot.com/2012/07/so-i-write-compilers-for-living-now.html | |
http://www.reddit.com/r/haskell/comments/2gz7s1/please_point_me_at_an_eloquent_paper_or_post_on/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings, BangPatterns #-} | |
import qualified Data.Sequence as S | |
import qualified Data.Foldable as F | |
import Control.Monad | |
import Data.Hashable | |
import Data.Sequence ((|>), ViewL(..)) | |
import Data.Function (on) | |
import qualified Data.ByteString.Char8 as B | |
import qualified Data.HashTable.IO as H | |
import Data.List |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scala> def f[A[_] <: Seq[_]](f: A[Int]) = f.head | |
f: [A[_] <: Seq[_]](f: A[Int])A | |
scala> def f[A[_] <: Seq[t] forSome { type t }](f: A[Int]) = f.head | |
f: [A[_] <: Seq[_]](f: A[Int])A | |
scala> def f[A[t] <: Seq[_] forSome { type t}](f: A[Int]) = f.head | |
f: [A[t] <: Seq[_] forSome { type t }](f: A[Int])A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scala> trait Foo { type Bar } | |
defined trait Foo | |
scala> def withFoo(foo: Foo): foo.Bar = // The return type depends on the parameter! | |
| sys.error("Not yet implemented") | |
withFoo: (foo: Foo)foo.Bar |