Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3dcdbf39e3
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.401 kb
import Language.Haskell.Syntax
import Language.Haskell.Parser
import System.Environment
import Control.Monad
import MIT6005
parseFile filename = readFile filename >>= return . parseModule
main = do
args <- getArgs
if null args
then putStrLn "usage: transform FILENAME.hs"
else do
(ParseOk v) <- parseFile $ head args
putStrLn (prettyPrint v)
Jump to Line
Something went wrong with that request. Please try again.