runghc -fdefer-type-errors

Kazu Yamamoto ( 山本和彦 ) kazu at
Mon Mar 11 08:45:04 CET 2013


Doesn't runghc support the -fdefer-type-errors option?

Consider this code:

module Main where

main :: IO ()
main = do
    -- putStrLn は文字列を取る
    putStrLn "Hello, world!" 
    putStrLn 1               -- 型エラー

If I use runghc with -fdefer-type-errors, "Hello, world!" is not
printed. Is this a bug?

If this behavior is intended, I would like to change it. If GHC can
run code like dynamically typed languages, it would be appealing to
new Haskell programmers from their community.


More information about the Glasgow-haskell-users mailing list