support 'InstanceSigs' language extension #68

Closed
soenkehahn opened this Issue Jul 24, 2014 · 2 comments

Projects

None yet

3 participants

Currently stylish-haskell seems to choke on modules that use the InstanceSigs language extension:

{-# LANGUAGE InstanceSigs #-}

data A = A

instance Show A where
  show :: A -> String
  show A = "A"

produces

Language.Haskell.Stylish.Parse.parseModule: could not parse <unknown>: ParseFailed (SrcLoc {srcFilename = "<unknown>.hs", srcLine = 7, srcColumn = 3}) "ScopedTypeVariables is not enabled"
{-# LANGUAGE InstanceSigs #-}

data A = A

instance Show A where
  show :: A -> String
  show A = "A"
Collaborator

Works in latest stylish-haskell.

@neongreen neongreen closed this Apr 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment