Bringing a quasiquoter in for string interpolation in tests. Added a .ghci file to load tests in ghci.
commit0e099fd248cb3d06b8cfd5ef71b3aac0adaa9ab9
authortechtangents <dylan@techtangents.com>
dateSun 17 Mar 2013, 20:45 (14 years ago)
parent3e30c85
elm/tests/Util/Stringable.hsdeleted−14
@@ -1,14 +0,0 @@
1−{-# LANGUAGE GeneralizedNewtypeDeriving, TypeSynonymInstances, FlexibleInstances #-}
2−
3−module Util.Stringable where
4−
5−class Stringable s where
6− stringify :: s -> String
7−
8−instance Stringable String where
9− stringify = id
10−
11−infixr 5 +-
12−(+-) :: (Stringable a, Stringable b) => a -> b -> String
13−a +- b = (stringify a) ++ (stringify b)
14−