Paweł Wieczorek avatar Paweł Wieczorek committed a1a0a02


Comments (0)

Files changed (3)

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


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


  -- Lists
-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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.