It seems to me that I already knew about this, but how could I use it fromMaybeon one line and not split it into 2 with let?
main = do
maybePort <- lookupEnv "PORT"
let port = fromMaybe "4020" maybePort
putStrLn $ "Listening on:" ++ port
source
share