0

"LANGUAGE" pragma seems to have no effect on the editor feedback.

Hi,

Maybe this is expected behaviour (and I have not understood something), but I notice that the following code does not give me any errors or warnings in the editor, but (as expected) does not build or run:

----

{-# LANGUAGE MonomorphismRestriction #-}
module Main
where

import System.IO

-- concat'' :: [[a]] -> [a]
concat'' = foldr (++) []

main = do
putChar 'x'

----

Thanks,
Farhad

1 comment

Please sign in to leave a comment.