Haskell
Type Signature Parameter Layout

by Tommaso Piazza

foo :: String -> Integer -> String
foo s i = undefined

bar :: MonadIO m => String -> Integer -> String -> FilePath -> ExceptT String (ReaderT (String, String) m) Text
bar s1 i s2 fp = undefined

foo :: String 
    -> Integer 
    -> String
foo s 
    i = 
  undefined

bar :: MonadIO m 
    => String 
    -> Integer 
    -> String 
    -> FilePath 
    -> ExceptT String (ReaderT (String, String) m) Text
bar s1 
    i 
    s2 
    fp = 
  undefined

Variant C, let hindent autoformat the code ๐Ÿ˜‰


foo :: String -> Integer -> String

foo s i = undefined



bar

  :: MonadIO m

  => String

  -> Integer

  -> String

  -> FilePath

  -> ExceptT String (ReaderT (String, String) m) Text

bar s1 i s2 fp = undefined

Maxim Baz

bar's type signature layout in Variant C is really hard core :D

Tommaso Piazza

Sign in to comment!