loading
open in
main.hs
1
2
3
4
5
6
7
8
9
10
main = do
  print $ 1 <$ [ ]
  print $ 1 <$ [2]
  print $ 1 <$ [1,2,3]
  
  print $ 1 <$ (Nothing)
  print $ 1 <$ (Just 2)
  
  print $ 1 <$ (Left  0 :: Either Int Int)
  print $ 1 <$ (Right 2 :: Either Int Int)
GHCi, version 8.0.1