Ömer, can you show us the source of Main.hs?
Janek
Dnia poniedziałek, 19 października 2015, Ömer Sinan Ağacan napisał:
> Hi all,
>
> I realized this change in TH error messages:
>
> GHC 7.10.2:
>
> ➜ th-test ghc --make Main.hs
> [1 of 1] Compiling Main ( Main.hs, Main.o )
>
Originally I had this file:
{-# LANGUAGE TemplateHaskell #-}
module Main where
import Language.Haskell.TH
import Language.Haskell.TH.Syntax
-- import LiftLoc
main :: IO ()
main = do
let loc :: Loc
loc = $(locaton)
-- loc = $(locaton >>=
Hi all,
I realized this change in TH error messages:
GHC 7.10.2:
➜ th-test ghc --make Main.hs
[1 of 1] Compiling Main ( Main.hs, Main.o )
Main.hs:13:15:
Not in scope: ‘locaton’
Perhaps you meant ‘location’ (imported from Language.Haskell.TH.Syntax)