j
k
j a
j l
I would go with : validatePositive :: Int -> Maybe (Positive Int) square :: Positive Int -> Positive Int
But squaring a negative Int is still guaranteed to be positive!
Back to the thread
Back to the list