Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/03-basic.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Refinement Types
module Intro where

import Prelude hiding (abs)
divide :: Int -> Int -> Int
zero'''' :: Int
die :: String -> a
\end{code}
Expand Down Expand Up @@ -249,6 +248,7 @@ that says that the second argument is non-zero:

\begin{code}
{-@ divide :: Int -> NonZero -> Int @-}
divide :: Int -> Int -> Int
divide _ 0 = die "divide by zero"
divide n d = n `div` d
\end{code}
Expand Down