Skip to content

Commit

Permalink
remove repl re-exports
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo committed Apr 29, 2024
1 parent 7ba89a2 commit 62acc1d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 37 deletions.
36 changes: 0 additions & 36 deletions src/Swarm/TUI/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,47 +33,12 @@ module Swarm.TUI.Model (

-- * UI state

-- ** REPL
REPLHistItem (..),
replItemText,
isREPLEntry,
getREPLEntry,
REPLHistory,
replIndex,
replLength,
replSeq,
newREPLHistory,
addREPLItem,
restartREPLHistory,
getLatestREPLHistoryItems,
moveReplHistIndex,
getCurrentItemText,
replIndexIsAtInput,
TimeDir (..),

-- ** Prompt utils
REPLPrompt (..),
removeEntry,

-- ** Inventory
InventoryListEntry (..),
_Separator,
_InventoryEntry,
_EquippedEntry,

-- *** REPL Panel Model
REPLState,
ReplControlMode (..),
replPromptType,
replPromptEditor,
replPromptText,
replValid,
replLast,
replType,
replControlMode,
replHistory,
newREPLEditor,

-- ** Updating
populateInventoryList,
infoScroll,
Expand Down Expand Up @@ -132,7 +97,6 @@ import Swarm.Log
import Swarm.TUI.Inventory.Sorting
import Swarm.TUI.Model.Menu
import Swarm.TUI.Model.Name
import Swarm.TUI.Model.Repl
import Swarm.TUI.Model.UI
import Swarm.Util.Lens (makeLensesNoSigs)
import Swarm.Version (NewReleaseFailure)
Expand Down
2 changes: 1 addition & 1 deletion src/Swarm/TUI/View.hs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ import Swarm.TUI.Launch.Model
import Swarm.TUI.Launch.View
import Swarm.TUI.Model
import Swarm.TUI.Model.Goal (goalsContent, hasAnythingToShow)
import Swarm.TUI.Model.Repl (getSessionREPLHistoryItems, lastEntry)
import Swarm.TUI.Model.Repl
import Swarm.TUI.Model.UI
import Swarm.TUI.Panel
import Swarm.TUI.View.Achievement
Expand Down
1 change: 1 addition & 0 deletions src/swarm-web/Swarm/Web.hs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ import Swarm.Language.Pretty (prettyTextLine)
import Swarm.Language.Syntax
import Swarm.TUI.Model
import Swarm.TUI.Model.Goal
import Swarm.TUI.Model.Repl (REPLHistItem, replHistory, replSeq)
import Swarm.TUI.Model.UI
import Swarm.Util.ReadableIORef
import Swarm.Util.RingBuffer
Expand Down

0 comments on commit 62acc1d

Please sign in to comment.