Skip to content

Commit

Permalink
more row syntax tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gnumonik committed May 25, 2024
1 parent 7f10e5a commit 1de91e0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/purus/passing/RowSyntax/RowSyntax.purs
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
module RowSyntax where

type OneRow :: Row Type
type OneRow = [one :: Int]

type SomeRow :: Row Type
type SomeRow = [inn'it :: Int, stirring :: String]


class IsARow (r :: Row Type)
instance IsARow [hello :: String]

Expand All @@ -13,3 +20,7 @@ aRowProxy = RowProxy

moreFields :: RowProxy [field1 :: Int, field2 :: String, field3 :: Boolean]
moreFields = RowProxy

type TestRecord1 = {foob :: String, ar :: Int}

type TestRecord2 = Record [foob :: String, ar :: Int]

0 comments on commit 1de91e0

Please sign in to comment.