[ 1 / x | x ← [-1, -0.75 .. 1], x /= 0 ]
1 / x
[-1,-0.75..1]
x /= 0
main :: IO () main = print x x = [ 1 / x | x <- [-1,-0.75..1], x /= 0 ]
[-1.0,-1.3333333333333333,-2.0,-4.0,4.0,2.0,1.3333333333333333,1.0]
import Prelude hiding (Maybe(..)) main :: IO () main = print x data Maybe a = Just a | Nothing x = [ch | (Just ch) <- [Just '3', Nothing, Just '4']]
"34"