[Haskell-cafe] Shake, Shelly, & FilePath

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Sat Mar 9 01:36:37 CET 2013


On 9 March 2013 11:31, Eli Frey <eli.lee.frey at gmail.com> wrote:
> I began converting an unwieldy Makefile into a Haskell program via Shake,
> hoping that I could increase both its readability and modularity.  The
> modularity has increased greatly, and I have found it exhilarating how much
> more I can express about my dependencies.  However, readability has
> suffered.
>
> I quickly found that heavy shell interaction became unwieldy and I came out
> with code that was much more difficult to scan with my eyes then what I had
> in my Makefile.
>
> I attempted to fix this by using the Shelly library for my shell
> interactions, and was well pleased until I attempted to compile and
> discovered Shelly.FilePath is NOT Prelude.FilePath.  Now I am left
> sprinkling coercions all over the place and am again shaking my head at how
> difficult to scan my code has become.

But it _is_ an instance of IsString, so can't you just use {-#
LANGUAGE OverloadedStrings #-} and thus get the behaviour you're after
(unless you need System.FilePath for something else)?

>
> I have been considering writing a shim over Shelly, but the prospect makes
> me uneasy.
>
> Has anyone else walked down this path before, and if so what did you bring
> away from the experience?  I find this situation such a shame, as all my
> other experiences with both libraries have been quite wonderful.
>
> - Eli
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
http://IvanMiljenovic.wordpress.com



More information about the Haskell-Cafe mailing list