View difference between Paste ID: gU8pr6Tu and ypr4SajS
SHOW: | | - or go back to the newest paste.
1
module Main where
2
3
import T1
4
import T2 -- HERE: why two indentation points?
5
          -- KB: Because the import declaration may continue on another line.
6
7
8
function = return (Structure
9-
                   , field2 =1231
9+
10
                   , field2 =1231        -- KB: That's a bug
11
                   })
12
13
function :: M X
14
            function = something something
15
function   -- HERE: TAB enter debugger: Lisp error: (parse-error . "Illegal token: =")
16
           -- KB: That's not valid haskell
17
18
function :: Int
19
function = do
20
  let x = 5
21
   let y = 7
22
  case x of
23
   _ -> return () -- HERE: TAB enter debugger: Lisp error: (parse-error . "Illegal token: case")
24
                  -- KB: not valid haskell either
25
26
function = (case x of
27
             Just x -> 0
28
             Nothing)                  -- HERE: why also same column as case?
29
                                       -- KB: because the expression can continue after the case
30
31
32-
           of
32+
33
                , )         -- HERE: why move to leftmost column?
34
           of               -- KB: that's a bug
35
            x -> x
36
37
38
function (_nm,hd) | hd = c
39
function (_nm,hd) = b        -- HERE: Tab cause debugger, underscore is important!
40
                             -- Strange, I have no problems there...
41
42
43
function = do
44
  nested $ do
45
    val :: String <- return "abc"
46
  z -- HERE: Why can't have same column as val?
47
    -- KB: That doesn't look like valid haskell?  Is it a syntax extension?
48
49
function = do
50
  (_ec) <- function
51
52
           return () -- HERE: can't have at the open parenthesis place, underscore is important
53
                     -- KB: I don't have any problems here...
54
55
56
function (x : xs) | c1==c2 =
57
                               return () -- HERE: selected points seem strange
58
                                         -- KB: seems fine, not sure what you would expect...
59
60
61
function :: (Monad m)
62-
         -> m ()         -- HERE: proposed both
62+
63
         -> m ()         -- HERE: proposed both
64
                         -- KB: not really a bug, but it could be added as an option