packages feed

hsdev-0.3.3.0: tests/test-package/ModuleTwo.hs

module ModuleTwo (
	untypedFoo,
	twice,
	overloadedStrings
	) where

import ModuleOne (untypedFoo)

import Data.String

-- | Apply function twice
twice :: (a -> a) -> a -> a
twice f = f . f

data MyString = MyString String

instance IsString MyString where
	fromString = MyString

overloadedStrings :: MyString
overloadedStrings = "Hello"