summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/exactprint/LayoutLet4.hs
blob: 28fe5994323bbb214ed8fcc8a3f171c7ec83155d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module LayoutLet4 where

-- Simple let expression, rename xxx to something longer or shorter
-- and the let/in layout should adjust accordingly
-- In this case the tokens for xxx + a + b should also shift out

foo xxx = let a = 1
              b = 2
          in xxx + a + b

bar = 3