nondecreasing export list formatting
parent
4b673d1d9d
commit
64417c59f4
|
@ -1001,8 +1001,7 @@ module Main
|
||||||
, test7
|
, test7
|
||||||
, test8
|
, test8
|
||||||
, test9
|
, test9
|
||||||
)
|
) where
|
||||||
where
|
|
||||||
|
|
||||||
#test exports-with-comments
|
#test exports-with-comments
|
||||||
module Main
|
module Main
|
||||||
|
@ -1016,8 +1015,7 @@ module Main
|
||||||
-- Test 5
|
-- Test 5
|
||||||
, test5
|
, test5
|
||||||
-- Test 6
|
-- Test 6
|
||||||
)
|
) where
|
||||||
where
|
|
||||||
|
|
||||||
#test simple-export-with-things
|
#test simple-export-with-things
|
||||||
module Main (Test(..)) where
|
module Main (Test(..)) where
|
||||||
|
@ -1286,8 +1284,7 @@ module Test
|
||||||
, test9
|
, test9
|
||||||
, test10
|
, test10
|
||||||
-- Test 10
|
-- Test 10
|
||||||
)
|
) where
|
||||||
where
|
|
||||||
|
|
||||||
-- Test
|
-- Test
|
||||||
import Data.List ( nub ) -- Test
|
import Data.List ( nub ) -- Test
|
||||||
|
|
|
@ -831,8 +831,7 @@ module Main
|
||||||
, DataTypeII(DataConstructor)
|
, DataTypeII(DataConstructor)
|
||||||
-- * Haddock heading
|
-- * Haddock heading
|
||||||
, name
|
, name
|
||||||
)
|
) where
|
||||||
where
|
|
||||||
|
|
||||||
#test type level list
|
#test type level list
|
||||||
|
|
||||||
|
|
|
@ -675,8 +675,7 @@ module Main
|
||||||
, test7
|
, test7
|
||||||
, test8
|
, test8
|
||||||
, test9
|
, test9
|
||||||
)
|
) where
|
||||||
where
|
|
||||||
|
|
||||||
#test exports-with-comments
|
#test exports-with-comments
|
||||||
module Main
|
module Main
|
||||||
|
@ -690,8 +689,7 @@ module Main
|
||||||
-- Test 5
|
-- Test 5
|
||||||
, test5
|
, test5
|
||||||
-- Test 6
|
-- Test 6
|
||||||
)
|
) where
|
||||||
where
|
|
||||||
|
|
||||||
#test simple-export-with-things
|
#test simple-export-with-things
|
||||||
module Main (Test(..)) where
|
module Main (Test(..)) where
|
||||||
|
@ -913,8 +911,7 @@ module Test
|
||||||
, test8
|
, test8
|
||||||
, test9
|
, test9
|
||||||
, test10
|
, test10
|
||||||
)
|
) where
|
||||||
where
|
|
||||||
|
|
||||||
-- Test
|
-- Test
|
||||||
import Data.List (nub) -- Test
|
import Data.List (nub) -- Test
|
||||||
|
|
|
@ -49,6 +49,7 @@ layoutModule lmod@(L _ mod') = case mod' of
|
||||||
, docWrapNode lmod $ appSep $ case les of
|
, docWrapNode lmod $ appSep $ case les of
|
||||||
Nothing -> docEmpty
|
Nothing -> docEmpty
|
||||||
Just x -> layoutLLIEs True x
|
Just x -> layoutLLIEs True x
|
||||||
|
, docSeparator
|
||||||
, docLit $ Text.pack "where"
|
, docLit $ Text.pack "where"
|
||||||
]
|
]
|
||||||
addAlternative
|
addAlternative
|
||||||
|
@ -56,11 +57,13 @@ layoutModule lmod@(L _ mod') = case mod' of
|
||||||
[ docAddBaseY BrIndentRegular $ docPar
|
[ docAddBaseY BrIndentRegular $ docPar
|
||||||
(docSeq [appSep $ docLit $ Text.pack "module", docLit tn]
|
(docSeq [appSep $ docLit $ Text.pack "module", docLit tn]
|
||||||
)
|
)
|
||||||
(docWrapNode lmod $ case les of
|
(docSeq [ docWrapNode lmod $ case les of
|
||||||
Nothing -> docEmpty
|
Nothing -> docEmpty
|
||||||
Just x -> layoutLLIEs False x
|
Just x -> layoutLLIEs False x
|
||||||
)
|
, docSeparator
|
||||||
, docLit $ Text.pack "where"
|
, docLit $ Text.pack "where"
|
||||||
]
|
]
|
||||||
|
)
|
||||||
|
]
|
||||||
]
|
]
|
||||||
: map layoutImport imports
|
: map layoutImport imports
|
||||||
|
|
Loading…
Reference in New Issue