Skip to content

Commit

Permalink
accept golden outputs (wrong, but useful to inspect)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgefst committed Nov 18, 2024
1 parent 726a99a commit 49bd868
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ module TErrorExp where
import Language.Haskell.TH ( tupE, litE, integerL )

main :: IO ()
main = return (42, ())
main = return 42, ())
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ module TErrorPat where
import Language.Haskell.TH ( conP )

f :: () -> ()
f True = x
f True




= x
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{-# LANGUAGE QuasiQuotes #-}
module TQQDecl where
import QQ (str)

foo :: String
foo = "foo"
2 changes: 1 addition & 1 deletion plugins/hls-splice-plugin/test/testdata/TQQPat.expected.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module TQQPat where
import QQ

f :: String -> IO ()
f "str" = putStrLn "is str"
f "str"= putStrLn "is str"
f _ = putStrLn " not str"
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module TQQPatError where
import QQ

f :: () -> IO ()
f "str" = putStrLn "is str"
f "str"= putStrLn "is str"
f _ = putStrLn " not str"
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
{-# LANGUAGE QuasiQuotes #-}
module TSimpleDecl where
import Language.Haskell.TH ( mkName, clause, normalB, funD, sigD )

-- Foo
-- Bar
foo :: Int
foo = 42
-- Bar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ module TSimplePat where
import Language.Haskell.TH ( varP, mkName )

f :: x -> x
f x = x
f x




= x
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
module TSimpleType where
import Language.Haskell.TH ( tupleT )

main :: IO ()
main :: IO )
main = return ()
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ module TTypeTypeError where
import Language.Haskell.TH ( appT, numTyLit, litT, conT )
import Data.Proxy ( Proxy )

main :: IO (Proxy 42)
main :: IO Proxy 42)
main = return ()

0 comments on commit 49bd868

Please sign in to comment.