From 813c306e72e72f1f1620786971e64470643ee323 Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Mon, 17 Jun 2019 13:44:45 +1200 Subject: [PATCH] Reorganize modules to make space for styling passes not related to selectors. --- src/Stylish/Style/{ => Selector}/Index.hs | 2 +- src/Stylish/Style/{ => Selector}/Interpret.hs | 2 +- test/Test.hs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/Stylish/Style/{ => Selector}/Index.hs (98%) rename src/Stylish/Style/{ => Selector}/Interpret.hs (98%) diff --git a/src/Stylish/Style/Index.hs b/src/Stylish/Style/Selector/Index.hs similarity index 98% rename from src/Stylish/Style/Index.hs rename to src/Stylish/Style/Selector/Index.hs index be13520..5ba9a02 100644 --- a/src/Stylish/Style/Index.hs +++ b/src/Stylish/Style/Selector/Index.hs @@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedStrings #-} -module Stylish.Style.Index ( +module Stylish.Style.Selector.Index ( StyleIndex(..), styleIndex, rulesForElement ) where diff --git a/src/Stylish/Style/Interpret.hs b/src/Stylish/Style/Selector/Interpret.hs similarity index 98% rename from src/Stylish/Style/Interpret.hs rename to src/Stylish/Style/Selector/Interpret.hs index 0c7f0ed..36574b1 100644 --- a/src/Stylish/Style/Interpret.hs +++ b/src/Stylish/Style/Selector/Interpret.hs @@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedStrings #-} -module Stylish.Style.Interpret( +module Stylish.Style.Selector.Interpret( compile, SelectorFunc(..) ) where diff --git a/test/Test.hs b/test/Test.hs index b399b6e..3a5b2cd 100644 --- a/test/Test.hs +++ b/test/Test.hs @@ -6,9 +6,9 @@ import Test.Hspec.QuickCheck import Data.CSS.Syntax.Tokens import Stylish.Parse -import Stylish.Style.Index +import Stylish.Style.Selector.Index import Stylish.Element -import Stylish.Style.Interpret +import Stylish.Style.Selector.Interpret main = hspec spec -- 2.30.2