d3470765803f667436692228f7e8ac31886950cb18305d8852162545fcd8de50Created: 2023-12-19 03:40:10.302489 UTC
Size: 798
Preview (limited to 512 bytes)
"module Data.Traversable.OrphansSpec (main, spec) where\n\nimport Test.Hspec\n\nimport Control.Applicative\nimport Data.Orphans ()\nimport Data.Traversable\nimport Prelude\n\nmain :: IO ()\nmain = hspec spec\n\nspec :: Spec\nspec = do\n describe \"Either Traversable Instance\" $ do\n it \"traverses a Left value\" $\n traverse (:[]) (Left 5 :: Either Int String) `shouldBe` [Left 5]\n it \"traverses a Right Value\" $\n traverse (:[]) (Right \"aaa\" :: Either Int String) `shouldBe` [Right \"aaa\"]\n\n describe \"(,) a Trave"
Casa is a service provided by the Haskell Foundation │ Originally developed by FP Complete