File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
System/Console/Haskeline/Backend Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ runDumbTerm h = liftIO $ posixRunTerm h (posixLayouts h) [] id evalDumb
39
39
40
40
instance (MonadIO m , MonadMask m , MonadReader Layout m ) => Term (DumbTerm m ) where
41
41
reposition _ s = refitLine s
42
- drawLineDiff = drawLineDiff'
42
+ drawLineDiff x y = drawLineDiff' x y
43
43
44
44
printLines = mapM_ (printText . (++ crlf))
45
45
moveToNextLine _ = printText crlf
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ output t = Writer.tell t -- NB: explicit argument enables build with ghc-6.12.3
202
202
-- see GHC ticket #1749).
203
203
204
204
outputText :: String -> ActionM ()
205
- outputText = output . const . termText
205
+ outputText s = output ( const ( termText s))
206
206
207
207
left ,right ,up :: Int -> TermAction
208
208
left = flip leftA
@@ -238,7 +238,7 @@ moveToPos p = do
238
238
239
239
moveRelative :: Int -> ActionM ()
240
240
moveRelative n = liftM3 (advancePos n) ask get get
241
- >>= moveToPos
241
+ >>= \ p -> moveToPos p
242
242
243
243
-- Note that these move by a certain number of cells, not graphemes.
244
244
changeRight , changeLeft :: Int -> ActionM ()
You can’t perform that action at this time.
0 commit comments