
#15775: Interpreter is treating a comment character as an identifier character. ---------------------------------+---------------------------------------- Reporter: philderbeast | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 8.4.3 Resolution: | Keywords: CPP Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Changes (by RyanGlScott): * status: infoneeded => new Comment: Indeed, I can reproduce this with `clang-cpp-6.0` on Linux: {{{ $ clang-cpp-6.0 Bug.hs Bug.hs:4:28: warning: treating Unicode character as identifier character rather than as '^' symbol [-Wunicode-homoglyph] -- | > Combine x y ~ x ∧ y ^ # 1 "Bug.hs" # 1 "<built-in>" 1 # 1 "<built-in>" 3 # 349 "<built-in>" 3 # 1 "<command line>" 1 # 1 "<built-in>" 2 # 1 "Bug.hs" 2 {-# LANGUAGE CPP #-} data Expr s a -- | > Combine x y ~ x ∧ y = Combine (Expr s a) (Expr s a) 1 warning generated. $ clang-cpp-6.0 --version clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15775#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler