summaryrefslogtreecommitdiff
path: root/src/HStyle/Selector.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/HStyle/Selector.hs')
-rw-r--r--src/HStyle/Selector.hs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/HStyle/Selector.hs b/src/HStyle/Selector.hs
new file mode 100644
index 0000000..361ab4e
--- /dev/null
+++ b/src/HStyle/Selector.hs
@@ -0,0 +1,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