4 import Hawk--(hawkMain)
21 ["-count", file] -> count file
22 ["-sample",n,file] -> sample (read n) file
23 otherwise -> error "Usage: pgm [-count] file\n"
27 p :: ((ArrayDesc Int (Instr DLXReg Int), a), Int) -> Signal [Trans DLX_Op (DLX_Cell DLXReg Int)]
28 --p :: ((ArrayDesc Int (Instr DLXReg Int), a), Int) -> Signal [Trans DLX_Op (DLX_Cell (Virtual DLXReg Int) Int)]
32 hawkMain file (mapM_ (putStrLn . show) . (view . p))
34 hawkMain file (mapM_ (putStrLn . show) . (cnt. view . p))
37 hawkMain file (mapM_ (putStrLn . pretty) . (take n . view . p))
40 foldr (\x y -> show x ++ "\n" ++ y) "\n" tss
44 mapM (\l -> n+=(length l)) l