Skip to content

Commit 429a478

Browse files
committed
[#148] small improvements
1 parent ce06b94 commit 429a478

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Language/CQL/Schema.hs

+4-2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
3838
{-# LANGUAGE UndecidableInstances #-}
3939

4040
module Language.CQL.Schema where
41+
42+
import Control.Arrow ((***))
4143
import Control.DeepSeq
4244
import Data.Bifunctor (second)
4345
import Data.List (nub)
@@ -46,7 +48,7 @@ import Data.Maybe
4648
import Data.Set as Set
4749
import Data.Typeable
4850
import Data.Void
49-
import Control.Arrow ((***))
51+
5052
import Language.CQL.Collage (Collage(..), typeOfCol)
5153
import Language.CQL.Common
5254
import Language.CQL.Options
@@ -122,7 +124,7 @@ up1Ctx
122124
:: (Ord var)
123125
=> Ctx var (ty+Void)
124126
-> Ctx (()+var) (ty+x)
125-
up1Ctx ctx = second absurd <$> Map.mapKeys Right ctx
127+
up1Ctx = (second absurd <$>) . Map.mapKeys Right
126128

127129
typesideToSchema :: Typeside var ty sym -> Schema var ty sym Void Void Void
128130
typesideToSchema ts'' = Schema ts'' Set.empty Map.empty Map.empty Set.empty Set.empty $ \x _ -> absurd x

0 commit comments

Comments
 (0)