Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ node_js: stable
env:
- PATH=$HOME/purescript:$PATH
install:
- TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p')
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
- TAG=$(basename $(curl --location --silent --output /dev/null -w %{url_effective} https://github.com/purescript/purescript/releases/latest))
- curl --location --output $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
- chmod a+x $HOME/purescript
- npm install -g bower
Expand Down
6 changes: 3 additions & 3 deletions test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,16 @@ main = do
assert $ top == D

log "Checking composite bottom"
assert $ bottom == None :: Option SimpleBounded
assert $ bottom == (None :: Option SimpleBounded)

log "Checking composite top"
assert $ top == Some D

log "Checking product bottom"
assert $ bottom == Pair Zero A :: Pair Bit SimpleBounded
assert $ bottom == (Pair Zero A :: Pair Bit SimpleBounded)

log "Checking product top"
assert $ top == Pair One D :: Pair Bit SimpleBounded
assert $ top == (Pair One D :: Pair Bit SimpleBounded)

log "Checking simple pred bottom"
assert $ pred (bottom :: SimpleBounded) == Nothing
Expand Down