Cleanup warnings
This commit is contained in:
@@ -8,11 +8,14 @@ newtype DS a = DS (a,[a],[a])
|
||||
Unsafe. -}
|
||||
fromListL :: [a] -> DS a
|
||||
fromListL (x:xs) = DS (x,xs,[])
|
||||
fromListL _ = undefined
|
||||
|
||||
singleton :: a -> DS a
|
||||
singleton x = DS (x,[],[])
|
||||
|
||||
head :: DS a -> a
|
||||
head (DS (x,_,_)) = x
|
||||
left, right :: DS a -> [a]
|
||||
left (DS (_,l,_)) = l
|
||||
right (DS (_,_,r)) = r
|
||||
|
||||
|
||||
Reference in New Issue
Block a user