Skip to content

The line on which to locate the error indication is bad.

module Qwer where

a = {-# LANGUAGE KindSignatures #-}

main :: IO ()
main = print (if True then () else ())

Reply from GHC\\

Prelude> :l qwer.hs
[1 of 1] Compiling Qwer             ( qwer.hs, interpreted )

qwer.hs:5:1: error:
    parse error (possibly incorrect indentation or mismatched brackets)
  |
5 | main :: IO ()
  | ^
Failed, modules loaded: none.

The error is located on line 3.\\ GHCi, version 8.2.0.20170507

Trac metadata
Trac field Value
Version 8.0.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information