File: parse-error.test

package info (click to toggle)
hlint 3.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 980 kB
  • sloc: haskell: 7,035; lisp: 86; makefile: 5
file content (33 lines) | stat: -rw-r--r-- 853 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---------------------------------------------------------------------
RUN "--ignore=Parse error" tests/ignore-parse-error.hs
FILE tests/ignore-parse-error.hs
where
OUTPUT
No hints

---------------------------------------------------------------------
RUN tests/ignore-parse-error2.hs
FILE tests/ignore-parse-error2.hs
module Foo where

where
OUTPUT
tests/ignore-parse-error2.hs:3:1-5: Error: Parse error: on input `where'
Found:
    module Foo where

  > where

1 error

---------------------------------------------------------------------
RUN tests/ignore-parse-error3.hs
FILE tests/ignore-parse-error3.hs
{-# LANGUAGE InvalidExtension #-}
OUTPUT
tests/ignore-parse-error3.hs:1:1: Error: Parse error: tests/ignore-parse-error3.hs:1:14: error: [GHC-46537]
    Unsupported extension: InvalidExtension
Found:
  {-# LANGUAGE InvalidExtension #-}

1 error