Skip to content

Updates for 1.0 core libraries #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 27, 2016
Merged
Changes from 1 commit
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
Prev Previous commit
Fix tests
  • Loading branch information
paf31 committed May 27, 2016
commit acd62714de10ed9dd97aef62f2eef457e1c2bb06
18 changes: 9 additions & 9 deletions test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ module Test.Main where

import Prelude

import Data.Maybe
import Data.Nullable
import Data.Maybe (Maybe(..))
import Data.Nullable (toNullable, toMaybe)

import Control.Monad.Eff.Console
import Control.Monad.Eff.Console (logShow)

main = do
print $ toNullable (Nothing :: Maybe Number)
print $ toNullable (Just 42)
logShow $ toNullable (Nothing :: Maybe Number)
logShow $ toNullable (Just 42)

print $ toMaybe $ toNullable (Nothing :: Maybe Number)
print $ toMaybe $ toNullable (Just 42)
logShow $ toMaybe $ toNullable (Nothing :: Maybe Number)
logShow $ toMaybe $ toNullable (Just 42)

print $ toNullable Nothing == toNullable (Just 42)
print $ toNullable Nothing `compare` toNullable (Just 42)
logShow $ toNullable Nothing == toNullable (Just 42)
logShow $ toNullable Nothing `compare` toNullable (Just 42)