We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d90e99 commit 811a702Copy full SHA for 811a702
Data/Vinyl/Core.hs
@@ -125,7 +125,16 @@ rappend
125
rappend RNil ys = ys
126
rappend (x :& xs) ys = x :& (xs `rappend` ys)
127
128
--- | A shorthand for 'rappend'.
+{- |
129
+A shorthand for 'rappend'.
130
+
131
+>>> :set -XScopedTypeVariables
132
+>>> testRec1 :: Rec Maybe '[Int, String] = Just 3 :& Just "Hi" :& RNil
133
+>>> testRec2 :: Rec Maybe '[Double, [Double]] = Nothing :& Just [3.0, 2.2] :& RNil
134
+>>> combinedTestRec = testRec1 <+> testRec2
135
+>>> :t combinedTestRec
136
+combinedTestRec :: Rec Maybe '[Int, [Char], Double, [Double]]
137
+-}
138
(<+>)
139
:: Rec f as
140
-> Rec f bs
0 commit comments