<div dir="ltr">Hello,<div><br></div><div>I am currently going through the CIS194 spring 13 course, since it has been recommended by several haskellions. I find the exercises extremely valuable, and the reading material is succinct (in a good way).</div><div><br></div><div>I just finished the exercises for lesson two, and while everything works, I get this warning:</div><div><div>Lektion02.hs:(38,1)-(44,21): warning: [-Wincomplete-patterns] …</div><div>    Pattern match(es) are non-exhaustive</div><div>    In an equation for ‘insert’:</div><div>        Patterns not matched:</div><div>            (LogMessage _ _ _) (Node _ (LogMessage _ _ _) _)</div></div><div><br></div><div>I understand that there is a pattern I'm not covering, but I can't really figure out which one. Here is my function:</div><div><div>insert :: LogMessage -> MessageTree -> MessageTree</div><div>insert (Unknown _) mt  = mt</div><div>insert m Leaf          = Node Leaf m Leaf</div><div>insert m@(LogMessage _ t _) (Node left value@(LogMessage _ t' _) right)</div><div>  | t <= t' = Node (insert m left) value right</div><div>  | t >  t' = Node left            value (insert m right)</div><div>insert m@(LogMessage _ _ _) (Node left (Unknown _) right)</div><div>  = Node left m right</div></div><div><br></div><div>(here's a pastebin with intact indentation: <a href="http://lpaste.net/356716">http://lpaste.net/356716</a>)</div><div><br></div><div>I am not sure on how I should progress to find out which pattern I'm missing.</div><div>Any help is appreciated.</div><div><br></div><div>Kind regards,</div><div>Jona</div></div>