This file contains hidden or 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 GADTs, RankNTypes, TypeOperators, ScopedTypeVariables, KindSignatures #-} | |
module FastApp where | |
import Prelude hiding (head, tail) | |
import Control.Applicative | |
-- Chris Okasaki invented many cool and efficient functional data structures | |
-- in his book Purely Functional Data Structures. | |
-- Among them, one is catenable lists supporting amortised O(1)-time |(++)|, |