packages feed

HaRe-0.8.0.0: test/testdata/Renaming/B4.hs.expected

module Renaming.B4 (myFringe)where

import Renaming.D4 hiding (sumSquares)

import qualified Renaming.D4

instance SameOrNot Float where
   isSameOrNot a  b = a ==b
   isNotSame a b = a /=b

myFringe:: Tree a -> [a]
myFringe (Leaf x ) = [x]
myFringe (Branch left right) = myFringe right

sumSquares (x:xs)= x^2 + sumSquares xs
sumSquares [] =0