Skip to content

Commit f49363b

Browse files
committed
add simple Liquid annotation for flattenCallback, which makes Liquid crash
1 parent eafa2b1 commit f49363b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Array.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ free :: Array a -. ()
103103
free = Unsafe.toLinear (\_ -> ())
104104

105105
{-# INLINE flattenCallback #-}
106+
{-@ flattenCallback :: f:_ -> xs:_ ->
107+
ret:{ ys:(Array a) } @-}
106108
flattenCallback :: (forall c. (Array b -. Ur c) -. Array a -. Ur c) -. Array a -. Array b
107109
flattenCallback f arr = unur (f ur arr)
108110

0 commit comments

Comments
 (0)