packages feed

haskell-tools-builtin-refactorings-1.0.0.0: examples/Refactor/ExtractBinding/ListComprehension.hs

module Refactor.ExtractBinding.ListComprehension where

filterPrime (p:xs) = 
  p : filterPrime [ x | x <- xs
                      , x `mod` p /= 0 ]