1
1
mirror of https://github.com/google/ormolu.git synced 2025-01-07 15:50:27 +03:00

Add tests for let/where interaction #177

This commit is contained in:
Basile Henry 2019-07-13 17:52:45 +01:00 committed by Mark Karpov
parent fd4fa7f33e
commit 0baa898f30
4 changed files with 14 additions and 0 deletions

View File

@ -52,3 +52,9 @@ trickyLet = do
foo
let x = 5
in bar x
-- single line let-where
samples n f = do
gen <- newQCGen
let rands g = g1 : rands g2 where (g1, g2) = split g
return $ rands gen

View File

@ -51,3 +51,9 @@ trickyLet = do
foo
let x = 5
in bar x
-- single line let-where
samples n f = do
gen <- newQCGen
let rands g = g1 : rands g2 where (g1, g2) = split g
return $ rands gen

View File

@ -1,2 +1,3 @@
foo :: a -> a
foo x = let x = x in x
foo x = let x = z where z = 2 in x

View File

@ -1,2 +1,3 @@
foo :: a -> a
foo x = let x = x in x
foo x = let x = z where z = 2 in x