Skip to content

Commit

Permalink
Fix GHC warning: -Wmissing-signatures
Browse files Browse the repository at this point in the history
Related: xmonad#537
  • Loading branch information
slotThe committed May 20, 2021
1 parent 7894bce commit 518e96b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions XMonad/Layout/StateFull.hs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ type StateFull = FocusTracking Full

-- | A pattern synonym for the primary use case of the @FocusTracking@
-- transformer; using @Full@.
pattern StateFull :: FocusTracking Full a
pattern StateFull = FocusTracking Nothing Full

instance LayoutClass l Window => LayoutClass (FocusTracking l) Window where
Expand Down
6 changes: 6 additions & 0 deletions XMonad/Layout/TallMastersCombo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,12 @@ focusWindow w s =
Stack foc ls []

-- | Merge two Maybe sublayouts.
mergeSubLayouts
:: Maybe (l1 a) -- ^ Left layout
-> Maybe (l2 a) -- ^ Right layout
-> TMSCombineTwo l1 l2 a -- ^ How to combine the layouts
-> Bool -- ^ Return a 'Just' no matter what
-> Maybe (TMSCombineTwo l1 l2 a)
mergeSubLayouts ml1 ml2 (TMSCombineTwo f w1 w2 vsp nmaster delta frac l1 l2) alwaysReturn =
if alwaysReturn
then Just $ TMSCombineTwo f w1 w2 vsp nmaster delta frac (maybe l1 id ml1) (maybe l2 id ml2)
Expand Down

0 comments on commit 518e96b

Please sign in to comment.