1module Initialize (initialize) where
3import Control.Applicative ((<$>))
4import Control.Monad.Error
5import Data.List (lookup)
8import Parser (parseProgram)
11import Types.Hints (hints)
17 let nameOf (Definition n _ _) = n in
18 do modul@(Module name ex im stmts) <- parseProgram str
19 (escapees, subs) <- unify hints modul
20 let modul' = optimize . rename $ Module name ex im' stmts
21 where im' | any ((=="Prelude") . fst) im = im
22 | otherwise = ("Prelude", Importing []) : im
23 subs `seq` return (escapees, modul')
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list