We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0250459 commit 84bbffaCopy full SHA for 84bbffa
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
+>>> appendedTestRecs = testRec1 <+> testRec2
135
+>>> :t appendedTestRecs
136
+appendedTestRecs :: Rec Maybe '[Int, [Char], Double, [Double]]
137
+-}
138
(<+>)
139
:: Rec f as
140
-> Rec f bs
0 commit comments