summaryrefslogtreecommitdiff
path: root/src/Util.hs
blob: 99d51f61f1ebd5001b9402f08b1c0f98b1733808 (plain)
1
2
3
4
5
6
module Util where

uniq :: Eq a => [a] -> [a]
uniq (x:y:xs) | x == y    = uniq (x:xs)
              | otherwise = x : uniq (y:xs)
uniq xs = xs