Skip to content

Commit 3d3e7c1

Browse files
committed
Eta expand as required by simplified subsumption rules
See GHC Proposal 287: https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0287-simplify-subsumption.rst
1 parent 463fc49 commit 3d3e7c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

System/Console/Haskeline/Backend/DumbTerm.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ runDumbTerm h = liftIO $ posixRunTerm h (posixLayouts h) [] id evalDumb
3939

4040
instance (MonadIO m, MonadMask m, MonadReader Layout m) => Term (DumbTerm m) where
4141
reposition _ s = refitLine s
42-
drawLineDiff = drawLineDiff'
42+
drawLineDiff x y = drawLineDiff' x y
4343

4444
printLines = mapM_ (printText . (++ crlf))
4545
moveToNextLine _ = printText crlf

System/Console/Haskeline/Backend/Terminfo.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ output t = Writer.tell t -- NB: explicit argument enables build with ghc-6.12.3
202202
-- see GHC ticket #1749).
203203

204204
outputText :: String -> ActionM ()
205-
outputText = output . const . termText
205+
outputText s = output (const (termText s))
206206

207207
left,right,up :: Int -> TermAction
208208
left = flip leftA
@@ -238,7 +238,7 @@ moveToPos p = do
238238

239239
moveRelative :: Int -> ActionM ()
240240
moveRelative n = liftM3 (advancePos n) ask get get
241-
>>= moveToPos
241+
>>= \p -> moveToPos p
242242

243243
-- Note that these move by a certain number of cells, not graphemes.
244244
changeRight, changeLeft :: Int -> ActionM ()

0 commit comments

Comments
 (0)