Skip to content

Commit 49bd868

Browse files
committed
accept golden outputs (wrong, but useful to inspect)
1 parent 726a99a commit 49bd868

9 files changed

+17
-11
lines changed

plugins/hls-splice-plugin/test/testdata/TErrorExp.expected.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ module TErrorExp where
33
import Language.Haskell.TH ( tupE, litE, integerL )
44

55
main :: IO ()
6-
main = return (42, ())
6+
main = return 42, ())

plugins/hls-splice-plugin/test/testdata/TErrorPat.expected.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@ module TErrorPat where
33
import Language.Haskell.TH ( conP )
44

55
f :: () -> ()
6-
f True = x
6+
f True
7+
8+
9+
10+
11+
= x
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{-# LANGUAGE QuasiQuotes #-}
22
module TQQDecl where
33
import QQ (str)
4-
54
foo :: String
65
foo = "foo"

plugins/hls-splice-plugin/test/testdata/TQQPat.expected.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ module TQQPat where
33
import QQ
44

55
f :: String -> IO ()
6-
f "str" = putStrLn "is str"
6+
f "str"= putStrLn "is str"
77
f _ = putStrLn " not str"

plugins/hls-splice-plugin/test/testdata/TQQPatError.expected.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ module TQQPatError where
33
import QQ
44

55
f :: () -> IO ()
6-
f "str" = putStrLn "is str"
6+
f "str"= putStrLn "is str"
77
f _ = putStrLn " not str"

plugins/hls-splice-plugin/test/testdata/TSimpleDecl.expected.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
{-# LANGUAGE QuasiQuotes #-}
33
module TSimpleDecl where
44
import Language.Haskell.TH ( mkName, clause, normalB, funD, sigD )
5-
6-
-- Foo
7-
-- Bar
85
foo :: Int
96
foo = 42
107
-- Bar

plugins/hls-splice-plugin/test/testdata/TSimplePat.expected.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@ module TSimplePat where
33
import Language.Haskell.TH ( varP, mkName )
44

55
f :: x -> x
6-
f x = x
6+
f x
7+
8+
9+
10+
11+
= x

plugins/hls-splice-plugin/test/testdata/TSimpleType.expected.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
module TSimpleType where
33
import Language.Haskell.TH ( tupleT )
44

5-
main :: IO ()
5+
main :: IO )
66
main = return ()

plugins/hls-splice-plugin/test/testdata/TTypeTypeError.expected.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ module TTypeTypeError where
44
import Language.Haskell.TH ( appT, numTyLit, litT, conT )
55
import Data.Proxy ( Proxy )
66

7-
main :: IO (Proxy 42)
7+
main :: IO Proxy 42)
88
main = return ()

0 commit comments

Comments
 (0)