mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
vanadium/xmonad: run hlint
This commit is contained in:
parent
1409a5e064
commit
06c9fe9f1e
1 changed files with 3 additions and 6 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
{-# LANGUAGE NamedFieldPuns #-}
|
|
||||||
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
|
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
|
||||||
|
|
||||||
module XMonad.Layout.ResizableTile.FixDescription
|
module XMonad.Layout.ResizableTile.FixDescription
|
||||||
|
|
@ -15,12 +14,10 @@ newtype RTFixDescription a = RTFixDescription { unwrapRT :: ResizableTall a }
|
||||||
instance LayoutClass RTFixDescription a where
|
instance LayoutClass RTFixDescription a where
|
||||||
runLayout (W.Workspace t l s) =
|
runLayout (W.Workspace t l s) =
|
||||||
let ws' = W.Workspace t (unwrapRT l) s
|
let ws' = W.Workspace t (unwrapRT l) s
|
||||||
in fmap (fmap (fmap RTFixDescription))
|
in (fmap . fmap . fmap) RTFixDescription . runLayout ws'
|
||||||
. runLayout ws'
|
|
||||||
|
|
||||||
handleMessage (RTFixDescription l) m =
|
handleMessage (RTFixDescription l) =
|
||||||
fmap (fmap RTFixDescription)
|
(fmap . fmap) RTFixDescription . handleMessage l
|
||||||
$ handleMessage l m
|
|
||||||
|
|
||||||
description (RTFixDescription l) =
|
description (RTFixDescription l) =
|
||||||
description l <> " " <> show (_nmaster l)
|
description l <> " " <> show (_nmaster l)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue