Skip to content

Commit

Permalink
Fix more warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dretch committed Jan 27, 2020
1 parent fcf4ad7 commit 68ce59d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gi-gtk-declarative/src/GI/Gtk/Declarative/WindowHost.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module GI.Gtk.Declarative.WindowHost (windowHost) where
-- a new top-level window: The window host just provides a place for the new window
-- to live, whilst fitting into the general tree-of-components pattern that is used
-- by gi-gtk-declarative.
import Control.Monad ((>=>))
import Data.Maybe (fromMaybe)
import Data.Typeable ((:~:) (..), Typeable, eqT)
import qualified GI.Gtk as Gtk
Expand Down Expand Up @@ -65,7 +64,7 @@ patch'
-> Patch
patch' windowState childState (w1, c1) (w2, c2) = case (w1, w2, windowState) of
(Just _ , _ , Nothing ) -> error "Previous window but no previous state"
(Nothing , _ , Just ws ) -> error "Previous state but no previous window"
(Nothing , _ , Just _ ) -> error "Previous state but no previous window"
(Just w1', Just w2', Just windowState') -> patch'' windowState' w1' w2'
(Just w , Nothing , Just ws ) -> destroyWindow ws w
(Nothing , Just w2', Nothing ) -> modifyWindow $ create w2'
Expand Down

0 comments on commit 68ce59d

Please sign in to comment.