Skip to content

Commit

Permalink
pin fourmolu version in CI
Browse files Browse the repository at this point in the history
Fix new version fourmolu warnings
  • Loading branch information
KubEF committed Sep 13, 2024
1 parent 26421f4 commit 4f1e47f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fourmolu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
- name: Run fourmolu
uses: haskell-actions/run-fourmolu@v10
with:
version: "latest"
version: "0.15.0.0"
16 changes: 9 additions & 7 deletions lamagraph-core/src/Core/Node.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ markAllInnerEdges nodes =
markPort port =
Port
(_targetAddress port)
( boolToBit $
bitToBool (_edgeIsVisited port)
|| isJust (elemIndex (Just (_targetAddress port)) addressesOfLoadedNodes)
( boolToBit
$ bitToBool (_edgeIsVisited port)
|| isJust (elemIndex (Just (_targetAddress port)) addressesOfLoadedNodes)
)
markPorts loadedNode =
LoadedNode
Expand All @@ -68,8 +68,10 @@ isActive ::
LoadedNode numberOfPorts ->
Bool
isActive leftNode rightNode =
leftNodePrimaryPortAddress == _originalAddress rightNode
&& rightNodePrimaryPortAddress == _originalAddress leftNode
leftNodePrimaryPortAddress
== _originalAddress rightNode
&& rightNodePrimaryPortAddress
== _originalAddress leftNode
where
leftNodePrimaryPortAddress = _targetAddress (_primaryPort $ _node leftNode)
rightNodePrimaryPortAddress = _targetAddress (_primaryPort $ _node rightNode)
Expand All @@ -85,8 +87,8 @@ selectAddressToLoad loadedNode =
if isPortToLoad loadedNode primaryPort
then Just $ _targetAddress primaryPort
else
foldl (\s mbPort -> mbPort >>= addressToLoad s) Nothing $
_secondaryPorts node
foldl (\s mbPort -> mbPort >>= addressToLoad s) Nothing
$ _secondaryPorts node
where
node = _node loadedNode
primaryPort = _primaryPort node
Expand Down

0 comments on commit 4f1e47f

Please sign in to comment.