Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Main where
- import T1
- import T2 -- HERE: why two indentation points?
- function = return (Structure
- { field = 123 -- HERE: why move to the leftmost column?
- , field2 =1231
- })
- function :: M X
- function = something something
- function -- HERE: TAB enter debugger: Lisp error: (parse-error . "Illegal token: =")
- function :: Int
- function = do
- let x = 5
- let y = 7
- case x of
- _ -> return () -- HERE: TAB enter debugger: Lisp error: (parse-error . "Illegal token: case")
- function = (case x of
- Just x -> 0
- Nothing) -- HERE: why also same column as case?
- function = case ( x
- , ) -- HERE: why move to leftmost column?
- of
- x -> x
- function (_nm,hd) | hd = c
- function (_nm,hd) = b -- HERE: Tab cause debugger, underscore is important!
- function = do
- nested $ do
- val :: String <- return "abc"
- z -- HERE: Why can't have same column as val?
- function = do
- (_ec) <- function
- return () -- HERE: can't have at the open parenthesis place, underscore is important
- function (x : xs) | c1==c2 =
- return () -- HERE: selected points seem strange
- function :: (Monad m)
- => m () -- HERE: only indented proposed
- -> m () -- HERE: proposed both
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement