summaryrefslogtreecommitdiff
path: root/src/HStyle/Selector.hs
blob: 361ab4ee95e0182091d468247edd2c5c325bac57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module HStyle.Selector
    ( Selector
    , selectAll
    , selectLines
    ) where

import Language.Haskell.Exts.Annotated (Module, SrcSpanInfo)

import HStyle.Block

-- | Selects a portion from a haskell module
type Selector = Module SrcSpanInfo -> Block -> [Block]

selectAll :: Selector
selectAll _ = return

selectLines :: Selector
selectLines _ = perLine