Commits

Paweł Wieczorek committed 5e2b001

default branch can be compiled!

Comments (0)

Files changed (3)

 license-file: ""
 copyright:
 maintainer:
-build-depends: mtl -any, mtl -any, haskell98 -any, haskell98 -any,
-               containers >=0.4 && <0.5, containers >=0.4 && <0.5,
-               base >=4.3 && <4.4, base >=4.3 && <4.4, array -any, array -any,
+build-depends: mtl -any, mtl -any, 
+               containers,
+               base,  array -any, array -any,
                transformers -any
 stability:
 homepage:

src/Selen/Bin/Main.hs

 
 import Selen.TypeChecker
 import System.Console.GetOpt
-import System
+import System.Environment
 import System.IO
 import Control.Monad
 import qualified Data.Map as Map

src/Selen/Compiler/CPS/Monad.hs

             ti  <- getTicks
             return (ir1, ti:tis)
 
-nth :: (Num b, Enum b) => b -> [a] -> a -> a
+nth :: (Eq b, Num b, Enum b) => b -> [a] -> a -> a
 nth 0 (x:_) _  = x
 nth _ []    d  = d
 nth n (_:xs) d = nth (pred n) xs d