Skip to content

Commit

Permalink
Support GHC.Tuple.Prim.Tuple2
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasdicioccio committed May 19, 2024
1 parent d43987e commit 76d8b4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Language/PureScript/Bridge/Tuple.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}

Expand All @@ -10,7 +11,11 @@ import Language.PureScript.Bridge.PSTypes (psTuple)
import Language.PureScript.Bridge.TypeInfo

tupleBridge :: BridgePart
#if __GLASGOW_HASKELL__>=908
tupleBridge = typeName ^== "Tuple2" >> psTuple
#else
tupleBridge = doCheck haskType isTuple >> psTuple
#endif

data TupleParserState = Start | OpenFound | ColonFound | Tuple | NoTuple
deriving (Eq, Show)
Expand Down

0 comments on commit 76d8b4c

Please sign in to comment.