Skip to content

Commit

Permalink
Restyled by fourmolu (#2156)
Browse files Browse the repository at this point in the history
Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
2 people authored and byorgey committed Sep 28, 2024
1 parent 7f02e87 commit 7e1c67b
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/game/Swarm/App.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import Graphics.Vty qualified as V
import Graphics.Vty.CrossPlatform qualified as V
import Swarm.Game.Failure (SystemFailure)
import Swarm.Game.State.Runtime
import Swarm.Pretty (prettyText)
import Swarm.Log (LogSource (SystemLog), Severity (..))
import Swarm.Pretty (prettyText)
import Swarm.TUI.Controller
import Swarm.TUI.Model
import Swarm.TUI.Model.StateUpdate
Expand Down
2 changes: 1 addition & 1 deletion src/swarm-doc/Swarm/Doc/Wiki/Cheatsheet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ import Swarm.Game.Recipe (Recipe, loadRecipes, recipeCatalysts, recipeInputs, re
import Swarm.Game.Terrain (loadTerrain, terrainByName)
import Swarm.Language.Capability (Capability)
import Swarm.Language.Capability qualified as Capability
import Swarm.Pretty (prettyText, prettyTextLine)
import Swarm.Language.Syntax (Const (..))
import Swarm.Language.Syntax qualified as Syntax
import Swarm.Language.Text.Markdown as Markdown (docToMark)
import Swarm.Language.Typecheck (inferConst)
import Swarm.Pretty (prettyText, prettyTextLine)
import Swarm.Util (maximum0, showT)

-- * Types
Expand Down
2 changes: 1 addition & 1 deletion src/swarm-engine/Swarm/Game/Exception.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ import Swarm.Game.Achievement.Definitions
import Swarm.Game.Entity (EntityMap, devicesForCap, entityName)
import Swarm.Language.Capability (Capability (CGod), capabilityName)
import Swarm.Language.JSON ()
import Swarm.Pretty (prettyText)
import Swarm.Language.Requirements.Type (Requirements (..))
import Swarm.Language.Syntax (Const, Term)
import Swarm.Log (Severity (..))
import Swarm.Pretty (prettyText)
import Swarm.Util
import Witch (from)

Expand Down
2 changes: 1 addition & 1 deletion src/swarm-tui/Swarm/TUI/Controller/UpdateUI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ import Swarm.Game.Robot.Concrete
import Swarm.Game.State
import Swarm.Game.State.Landscape
import Swarm.Game.State.Substate
import Swarm.Pretty
import Swarm.Language.Typed (Typed (..))
import Swarm.Language.Types
import Swarm.Language.Value (Value (VExc, VUnit), envTydefs, prettyValue)
import Swarm.Pretty
import Swarm.TUI.Controller.SaveScenario (saveScenarioInfoOnFinishNocheat)
import Swarm.TUI.Controller.Util
import Swarm.TUI.Model
Expand Down
2 changes: 1 addition & 1 deletion src/swarm-tui/Swarm/TUI/Model/StateUpdate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ import Swarm.Game.State.Landscape
import Swarm.Game.State.Runtime
import Swarm.Game.State.Substate
import Swarm.Game.World.Gen (Seed)
import Swarm.Pretty (prettyText)
import Swarm.Log (LogSource (SystemLog), Severity (..))
import Swarm.Pretty (prettyText)
import Swarm.TUI.Editor.Model qualified as EM
import Swarm.TUI.Editor.Util qualified as EU
import Swarm.TUI.Inventory.Sorting
Expand Down
2 changes: 1 addition & 1 deletion src/swarm-tui/Swarm/TUI/View.hs
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ import Swarm.Game.Universe
import Swarm.Game.World.Coords
import Swarm.Game.World.Gen (Seed)
import Swarm.Language.Capability (Capability (..), constCaps)
import Swarm.Pretty (prettyText, prettyTextLine, prettyTextWidth)
import Swarm.Language.Syntax
import Swarm.Language.Typecheck (inferConst)
import Swarm.Log
import Swarm.Pretty (prettyText, prettyTextLine, prettyTextWidth)
import Swarm.TUI.Border
import Swarm.TUI.Controller (ticksPerFrameCap)
import Swarm.TUI.Controller.EventHandlers (allEventHandlers, mainEventHandlers, replEventHandlers, robotEventHandlers, worldEventHandlers)
Expand Down
2 changes: 1 addition & 1 deletion src/swarm-tui/Swarm/TUI/View/Robot/Details.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import Prettyprinter (pretty)
import Swarm.Game.Robot
import Swarm.Game.Robot.Activity (commandsHistogram)
import Swarm.Game.Robot.Concrete
import Swarm.Language.Pretty (prettyText)
import Swarm.Log
import Swarm.Pretty (prettyText)
import Swarm.TUI.Model.Name
import Swarm.TUI.View.Attribute.Attr (boldAttr, cyanAttr)
import Swarm.TUI.View.Robot.Type
Expand Down
2 changes: 1 addition & 1 deletion src/swarm-tui/Swarm/TUI/View/Util.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import Swarm.Game.State
import Swarm.Game.State.Landscape
import Swarm.Game.State.Substate
import Swarm.Game.Terrain
import Swarm.Pretty (prettyTextLine)
import Swarm.Language.Syntax (Syntax)
import Swarm.Language.Text.Markdown qualified as Markdown
import Swarm.Language.Types (Polytype)
import Swarm.Pretty (prettyTextLine)
import Swarm.TUI.Model
import Swarm.TUI.Model.Event (SwarmEvent)
import Swarm.TUI.Model.UI
Expand Down
2 changes: 1 addition & 1 deletion test/integration/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ import Swarm.Game.Step.Path.Type
import Swarm.Game.Step.Validate (badErrorsInLogs, playUntilWin)
import Swarm.Game.Tick (getTickNumber)
import Swarm.Language.Pipeline (processTerm)
import Swarm.Pretty (prettyString)
import Swarm.Log
import Swarm.Pretty (prettyString)
import Swarm.TUI.Model (
KeyEventHandlingState,
debugOptions,
Expand Down
2 changes: 1 addition & 1 deletion test/unit/TestLanguagePipeline.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import Swarm.Language.Parser (readTerm)
import Swarm.Language.Parser.QQ (tyQ)
import Swarm.Language.Pipeline (processTerm)
import Swarm.Language.Pipeline.QQ (tmQ)
import Swarm.Pretty (prettyText)
import Swarm.Language.Syntax
import Swarm.Language.Typecheck (isSimpleUType)
import Swarm.Language.Types
import Swarm.Pretty (prettyText)
import Test.Tasty
import Test.Tasty.HUnit
import Witch (from)
Expand Down
2 changes: 1 addition & 1 deletion test/unit/TestPretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
module TestPretty where

import Data.Fix (Fix (..))
import Swarm.Pretty
import Swarm.Language.Syntax hiding (mkOp)
import Swarm.Language.Types
import Swarm.Pretty
import Test.Tasty
import Test.Tasty.HUnit
import Witch (into)
Expand Down

0 comments on commit 7e1c67b

Please sign in to comment.