Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ test7_3 = runM (test7_1 ! defaults)
-- test7_5 :: m Int
-- test7_5 = test7_1 ! defaults

test8 :: "ice-cream" :! a -> IO a -- hyphenated parameter name
test8 (arg #"ice-cream" -> x) = return x

test8_1 :: IO String
test8_1 = test8 ! #"ice-cream" "vanilla"

main :: IO ()
main = do
void test1_1
Expand All @@ -164,6 +170,7 @@ main = do
test4_4 `mustBe` 'x'
test4_5 `mustBe` 'q'
test4_6 `mustBe` 'x'
void test8_1

mustBe :: (Eq a, Show a) => a -> a -> IO ()
mustBe a b
Expand Down
Loading