Skip to content
Snippets Groups Projects
Commit 74c92172 authored by Jens Nolte's avatar Jens Nolte
Browse files

Use singleton function from base

parent 852d811e
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ module Quasar.Wayland.Protocol.TH (
import Control.Monad.STM
import Control.Monad.Writer
import Data.ByteString qualified as BS
import Data.List (intersperse)
import Data.List (intersperse, singleton)
import Data.Void (absurd)
import GHC.Records (getField)
import Language.Haskell.TH
......@@ -95,10 +95,6 @@ generateWaylandProcol protocolFile = do
tellQ :: Q a -> WriterT [a] Q ()
tellQ action = tell =<< lift (singleton <$> action)
where
-- TODO use from base (base-4.14.0.0)
singleton :: a -> [a]
singleton x = [x]
tellQs :: Q [a] -> WriterT [a] Q ()
tellQs = tell <=< lift
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment