だから私はこの関数を持っています、そして私がそれをこのように使おうとすると:mergeSortedLists [1,1] [1,1]それは私にエラーを与えます:
[1,1 ***例外:SortFunctions.hs:(86,1)-(91,89):関数mergeSortedListsの非網羅的なパターン
85 mergeSortedLists :: (Ord t) => [t] -> [t] -> [t]
86 mergeSortedLists [] [] = []
87 mergeSortedLists (x:[]) [] = x:[]
88 mergeSortedLists [] (y:[]) = y:[]
89 mergeSortedLists (x:[]) (y:[]) = (max x y) : (min x y) : []
90 mergeSortedLists (x:tail1) (y:tail2) | x > y = x : (mergeSortedLists tail1 (y:tail2))
91 | otherwise = y : (mergeSortedLists (x:tail1) tail2)
私は可能な限りすべてのケースをカバーしたと思うので、問題の原因を理解することはできません。ここで何が問題になる可能性がありますか?