<img style="border: none; background:none;" src="https://welovepg.polymail.io/v1/z/a/xVtBCheapRhT9U1s/QMFBw88mos3OTGwW1IF1z5_4BdNP_6FehQ9CIF0qwG7GP7vOF_ag7w5Iddg0Vm4wNxOUzidXE-0QuqX06dMpHZ6fHC5a7oq3Eb5DZHlBJo5ONCuwr0o3SRZX.png" alt="" width="0px" height="0px" border="0" />Yes you can define your own Prelude. You can’t shadow modules but you can depend on a package providing a custom prelude while not explicitly depending on base.<div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">On Mon 14 Mar 2016 at 14:01 Clinton Mead <clintonmead@gmail.com> <<a href="mailto:Clinton Mead <clintonmead@gmail.com>">Clinton Mead <clintonmead@gmail.com></clintonmead@gmail.com></a>> wrote:<br></clintonmead@gmail.com></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just thinking out loud here, but could one write their own Prelude which just imports hiding (head), adds a new definition of head, and reexports the lot. Then add this new Prelude higher in the search path perhaps?</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span></span><div><br>On Monday, 14 March 2016, Han Joosten <<a href="mailto:han.joosten.han@gmail.com">han.joosten.han@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks all! Plenty good options, fortunately I found my bug pretty fast by simple code inspection :))</div><p>_______________________________________________
<br>Haskell-Cafe mailing list
<br><a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a>
<br><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a>
<br></p><br><div class="gmail_quote">2016-03-12 4:28 GMT+01:00 Chris Wong <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','lambda.fairy@gmail.com');" target="_blank">lambda.fairy@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Sat, Mar 12, 2016 at 8:07 AM, Jonas Scholl<br>
<<a href="javascript:_e(%7B%7D,'cvml','anselm.scholl@tu-harburg.de');" target="_blank">anselm.scholl@tu-harburg.de</a>> wrote:<br>
> You mean like this?<br>
><br>
> default-extensions: CPP<br>
> cpp-options:<br>
> -Dhead=(foldr(const)(error("head:\x20\x65mpty\x20list\x20in\x20"++__FILE__++":"++show(__LINE__))).(take$1))<br>
<br>
</span>That's pretty cool!<br>
<br>
By the way: can the (take$1) be removed? foldr should be lazy enough already.<br>
<span><font color="#888888"><br>
--<br>
Chris Wong (<a href="https://lambda.xyz" rel="noreferrer" target="_blank">https://lambda.xyz</a>)<br>
<br>
"I had not the vaguest idea what this meant and when I could not<br>
remember the words, my tutor threw the book at my head, which did not<br>
stimulate my intellect in any way." -- Bertrand Russell<br>
</font></span><div><div>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','Haskell-Cafe@haskell.org');" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></blockquote></div>
</blockquote></div>
</div>