Skip to content

Error parsing '(,) #198

@basile-henry

Description

@basile-henry

The following program is valid (using template-haskell):

{-# LANGUAGE TemplateHaskell #-}

import Language.Haskell.TH.Syntax

main = print $ showName '(,)

However stylish-haskell doesn't parse it properly:

stylish-haskell git:(master) 
➜ git rev-parse HEAD        
d24532c82472c4d11947a0afe8941f930664b0ac

stylish-haskell git:(master) 
➜ stack exec -- stylish-haskell --version
stylish-haskell 0.9.0.2

stylish-haskell git:(master) 
➜ stack exec -- stylish-haskell /path/to/Test.hs
Language.Haskell.Stylish.Parse.parseModule: could not parse /path/to/Test.hs: ParseFailed (SrcLoc "<unknown>.hs" 5 27) "Parse error: ,"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions