Skip to content

Commit

Permalink
lookupConf
Browse files Browse the repository at this point in the history
  • Loading branch information
nalchevanidze committed Jul 16, 2024
1 parent aae4402 commit 921fc06
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions hconf/src/HConf/Config/ConfigT.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
Expand Down Expand Up @@ -29,7 +28,7 @@ import HConf.Utils.Chalk (Color (Green), chalk)
import HConf.Utils.Class
( Check (..),
HConfIO (..),
LookupConf (..),
LookupConf (..), ByName (..),
)
import HConf.Utils.Core (Name)
import HConf.Utils.Log
Expand Down Expand Up @@ -110,5 +109,5 @@ instance LookupConf ConfigT Env where
instance LookupConf ConfigT Version where
lookupConf _ = asks (version . config)

instance LookupConf ConfigT Bounds where
lookupConf name = asks config >>= getRule name
instance LookupConf ConfigT (ByName Bounds) where
lookupConf name = ByName <$> (asks config >>= getRule name)

0 comments on commit 921fc06

Please # to comment.