"Encountered unknown syntactical constructs: HsStatic{}" when using StaticPointers with multi line expressions #218

Open
opened 2019-02-06 05:13:53 +01:00 by utdemir · 0 comments
utdemir commented 2019-02-06 05:13:53 +01:00 (Migrated from github.com)

Example code:

{-# LANGUAGE StaticPointers #-}

module Main where

foo = static (
    True)

gives:

ERROR: brittany pretty printer returned syntactically invalid result.
ERROR: encountered unknown syntactical constructs:
HsStatic{} at src/Main.hs:(5,7)-(6,9)

Interestingly, this issue only happens when the parameter to static spans multiple lines, so static True or static (True) works fine.

Example code: ``` {-# LANGUAGE StaticPointers #-} module Main where foo = static ( True) ``` gives: ``` ERROR: brittany pretty printer returned syntactically invalid result. ERROR: encountered unknown syntactical constructs: HsStatic{} at src/Main.hs:(5,7)-(6,9) ``` Interestingly, this issue only happens when the parameter to `static` spans multiple lines, so `static True` or `static (True)` works fine.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#218
There is no content yet.