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

Remove active usages of 'error'

parent 7f29dda7
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,6 @@ import System.Environment (getEnv)
type CommandChan = TChan Command
data Command = SetTheme T.Text
| Block
deriving Show
data SocketResponse = Success | Error Text
......@@ -110,7 +109,7 @@ listenUnixSocket options commandChan = do
response <- maybe (errorResponse "Empty stream") (either handleError (handleCommand leftovers)) decodeResult
runEffect (encode response >-> consumer)
handleCommand :: Producer ByteString IO () -> Command -> IO SocketResponse
handleCommand _ Block = error "TODO" -- addBlock $ handleBlockStream leftovers
--handleCommand _ Block = error "TODO" -- addBlock $ handleBlockStream leftovers
handleCommand _ command = do
atomically $ writeTChan commandChan command
return Success
......
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