nicolas
nicolas

Reputation: 9835

parse error in haskell file with unicode symbol

It's probably very stupid, but I get a

parse error on input ‘⊥’

when I process this file

#!/usr/bin/env stack
-- stack --install-ghc --resolver lts-5.13 runghc --package http-conduit
{-# LANGUAGE OverloadedStrings, RankNTypes, MultiParamTypeClasses, FunctionalDependencies #-}
{-# LANGUAGE ScopedTypeVariables, UnicodeSyntax, PartialTypeSignatures #-}
module MainImplicitConfiguration where

a = ⊥

Is there a reason why that should be a parse error ?

Upvotes: 1

Views: 239

Answers (1)

ErikR
ErikR

Reputation: 52057

Try:

a = (⊥)

(along with LANGUAGE UnicodeSyntax)

Upvotes: 4

Related Questions