Hi, I wrote a simple shell function for switching GHC version on the
system. It works only under Mac OSX, and only switch GHCs installed
via .pkg installers. It's useful to experiment newer features without
worrying breaking environment.
GHC_BASE_DIR=/Library/Frameworks/GHC.framework/Versions/
Allbery allber...@gmail.com wrote:
On Mon, Feb 6, 2012 at 18:27, HASHIMOTO, Yusaku nonow...@gmail.com wrote:
Hi, I wrote a simple shell function for switching GHC version on the
system. It works only under Mac OSX, and only switch GHCs installed
via .pkg installers. It's useful to experiment
Great, It illustrates why difference lists are awesome.
import HTrace
app :: [a] - [a] - [a]
app [] ys = htrace app ys
app (x:xs) ys = htrace app (x:app xs ys)
rev1 [] = htrace [] []
rev1 (x:xs) = htrace rev1 (app (rev1 xs) [x])
rev2 [] ys = htrace ys ys
rev2 (x:xs) ys = htrace : (rev2 xs
There are many libraries to write function takes an record has Foo
and Bar and returns something. But writing type of the function is
still difficult. I can't write such types using HList or records
without reading documents. I think, using has, There's few effort to
write such types.
In
On 11 May 2010 03:25, adam vogt vogt.a...@gmail.com wrote:
On Tue, May 4, 2010 at 12:18 PM, HASHIMOTO, Yusaku nonow...@gmail.com wrote:
This library is inspired by HList[2], and interfaces are stealed from
data-accessors[3]. And lenses[4], fclabels[5], and records[6] devote
themselves
using HList or records
without reading documents. I think, using has, There's few effort to
write such types.
I think `has' fits the needs of Haskellers who have the good habit of
writing a type of a function before its definition.
On 14 May 2010 07:58, HASHIMOTO, Yusaku nonow...@gmail.com wrote
Hello,
I'm pleased to announce the release of my new library, named has,
written to aim to ease pain at inconvinience of Haskell's build-in
records.
With the has, You can reuse accessors over records to write generic
function, combine records with another.
Repository is at GitHub:
Hello
I'm pleased to announce the release of my new library, named has,
written to aim to ease pain at inconvinience of Haskell's build-in
records.
Hmm, nice work, looks interesting.
Thanks!
You can use the has in three steps (without counting installation).
1. Write {-# OPTIONS_GHC
I uploaded new version (0.4.0.1) of this package with proper pragmas.
On 5 May 2010 02:00, HASHIMOTO, Yusaku nonow...@gmail.com wrote:
Hello
I'm pleased to announce the release of my new library, named has,
written to aim to ease pain at inconvinience of Haskell's build-in
records.
Hmm
.
{-# LANGUAGE TypeFamilies,TypeOperators,FlexibleContexts #-}
Sorry for incorrect information.
-nwn
On 5 May 2010 02:33, HASHIMOTO, Yusaku nonow...@gmail.com wrote:
I uploaded new version (0.4.0.1) of this package with proper pragmas.
On 5 May 2010 02:00, HASHIMOTO, Yusaku nonow...@gmail.com wrote:
Hello
10 matches
Mail list logo