Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ogma-core: Remove dependency on IfElse. Refs #150. #153

Merged
merged 3 commits into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ogma-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for ogma-core

## [1.4.X] - 2024-09-21

* Remove dependency on IfElse (#150).

## [1.4.0] - 2024-05-21

* Version bump 1.4.0 (#145).
Expand Down
1 change: 0 additions & 1 deletion ogma-core/ogma-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ library
, aeson >= 2.0.0.0 && < 2.2
, bytestring
, filepath
, IfElse
, mtl

, ogma-extra >= 1.4.0 && < 1.5
Expand Down
4 changes: 2 additions & 2 deletions ogma-core/src/Command/FRETComponentSpec2Copilot.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ module Command.FRETComponentSpec2Copilot
where

-- External imports
import Control.Monad.IfElse ( awhen )
import Data.Aeson ( eitherDecode, decode )
import Data.ByteString.Lazy (fromStrict)
import Data.Foldable (for_)

-- External imports: auxiliary
import Data.ByteString.Extra as B ( safeReadFile )
Expand Down Expand Up @@ -91,7 +91,7 @@ fretComponentSpec2Copilot fp options = do
let (mOutput, result) =
fretComponentSpec2CopilotResult options fp copilot

awhen mOutput putStrLn
for_ mOutput putStrLn
return result

-- | Print the contents of a Copilot module that implements the Past-time TL
Expand Down
8 changes: 4 additions & 4 deletions ogma-core/src/Command/FRETReqsDB2Copilot.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ module Command.FRETReqsDB2Copilot
where

-- External imports
import Control.Monad.IfElse ( awhen )
import Data.Aeson ( eitherDecode )
import Data.List ( nub, (\\) )
import Data.Aeson (eitherDecode)
import Data.Foldable (for_)
import Data.List (nub, (\\))

-- External imports: auxiliary
import Data.ByteString.Extra as B ( safeReadFile )
Expand Down Expand Up @@ -88,7 +88,7 @@ fretReqsDB2Copilot fp options = do
let (mOutput, result) =
fretReqsDB2CopilotResult options fp copilot

awhen mOutput putStrLn
for_ mOutput putStrLn
return result

-- | Print the contents of a Copilot module that implements the Past-time TL
Expand Down