Dear list,
From ghc 7.0.1 release notes:
The Language.Haskell.TH.Quote.QuasiQuoter type has two new fields: quoteType
and quoteDec.
Some of my code needs to be conditionally compiled to support both
version 6 and 7, what is the recommended way to do it?
ref:
*
automatically?
: )
Best,
On Sun, Nov 28, 2010 at 1:32 AM, Michael Snoyman mich...@snoyman.com wrote:
On Sat, Nov 27, 2010 at 6:59 PM, Jinjing Wang nfjinj...@gmail.com wrote:
Dear list,
From ghc 7.0.1 release notes:
The Language.Haskell.TH.Quote.QuasiQuoter type has two new fields:
quoteType
Sorry, should be `cabal install --flags=ghc7 package-name`.
On Sun, Nov 28, 2010 at 1:59 AM, Jinjing Wang nfjinj...@gmail.com wrote:
Thanks Michael,
So the user should use `cabal install --flags -ghc7 package-name` to
install the package, if I'm not mistaken?
Will it work if the package
wrote:
On Sat, Nov 27, 2010 at 10:59 AM, Jinjing Wang nfjinj...@gmail.com wrote:
Dear list,
From ghc 7.0.1 release notes:
The Language.Haskell.TH.Quote.QuasiQuoter type has two new fields:
quoteType and quoteDec.
Some of my code needs to be conditionally compiled to support both
version 6
:
Warning: Fields of `QuasiQuoter' not initialised: quoteType, quoteDec
So far it works without problem.
On Sun, Nov 28, 2010 at 10:38 AM, Jinjing Wang nfjinj...@gmail.com wrote:
Hi Michael, you are absolutely correct, cabal did set the flags automatically.
To sum up, here's what needs to be done
Thanks for explaining, it's a nice trick.
On Sun, Nov 28, 2010 at 11:16 AM, Antoine Latter aslat...@gmail.com wrote:
On Sat, Nov 27, 2010 at 8:38 PM, Jinjing Wang nfjinj...@gmail.com wrote:
Hi Michael, you are absolutely correct, cabal did set the flags
automatically.
To sum up, here's what
you can:
mv /Library/Frameworks/GHC.framework /Library/Frameworks/GHC.framework.2
then install GHC 7
just toggle between those paths to switch version ...
On Tue, Nov 2, 2010 at 1:07 AM, Edward Amsden eca7...@cs.rit.edu wrote:
I'd like to install the GHC 7.0.1 RC on my mac (Snow Leopard,
John Millikin wrote:
The reason many Japanese and Chinese users reject UTF-8 isn't due to
space constraints (UTF-8 and UTF-16 are roughly equal), it's because
they reject Unicode itself.
+1.
This is the thing Unicode advocates don't want to admit. Until Unicode has
code points for _all_
I think the default locale of the terminal app on snow leopard is utf-8.
I can also report that I have no problem compiling the tar version of
jhc 0.7.4 on snow leopard 10.6.4 using ghc 6.12.1, need to install the
editline package though.
On Sun, Jul 11, 2010 at 5:33 AM, John Meacham
poor man's benchmark :)
http://github.com/nfjinjing/bench-euler
multi core aware, use bench-euler +RTS -N2 where 2 means 2 cores, and
watch your cpu fries :)
On Fri, Jun 25, 2010 at 7:24 AM, Andy Georges
andy.geor...@elis.ugent.be wrote:
Hi Simon et al,
I've picked up the
Dear list,
As I'm learning frp and reading the wonderful tutorial at
http://www.formicite.com/dopage.php?frp/frp.html
, I'm putting up some more basic cheatsheet style tutorial for myself.
http://github.com/nfjinjing/frp-guide
Feel free to take advantage of it.
--
jinjing
fac n = let {
f = foldr (*) 1 [1..n]
} in f
:D
sorry for double reply, need to cc cafe, this is fun.
On Tue, Feb 2, 2010 at 4:33 PM, zaxis z_a...@163.com wrote:
thanks for all suggestions.
zaxis wrote:
For me i like C style instead of layout. For example,
func1 a = do
-- ...
The hyena backend is essentially just a translator between hack and
wai, i failed to finished it since I can't understand iteratee
(seriously) and eventually got distracted ...
What hyena tries to solve can't be realized in hack, so there's not
too much reason for a backend anyway.
Hyena is
not sure if this helps, but try:
# ports share lib export
export CPATH=~/local/include
export LIBRARY_PATH=~/local/lib
export LD_LIBRARY_PATH=~/local/lib
export DYLD_LIBRARY_PATH=~/local/lib
replace ~/local/ with your ports path
On Tue, Dec 22, 2009 at 5:43 AM, Tom Tobin korp...@korpios.com
hand written html is fine, except for the closing tags:
what if
html' - do
head' - do
meta
[http_equiv Content-Type, content text/html; charset-utf-8] (/)
title' - str my title
link [rel icon, _type image/png, href panda_icon.png] (/)
It's possible to serve the generated site with maid, in case apache is
not available:
cabal update
cabal install maid
yst create testsite
cd testsite
yst
cd site
maid
now goto http://localhost:3000/
On Mon, Aug 3, 2009 at 9:05 AM, John MacFarlanej...@berkeley.edu wrote:
I'm pleased to
Hack is such an inconvenient name for a package, may I get some
inspiration from renaming it?
Also, is there an idiom to use when upgrading package name on hackage?
Best,
--
jinjing
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
loli is a DSL built on hack. It allows you to easily define routes,
build your custom template backends through a simple Template
interface, and integrate with other hack middleware.
* driver
The simplest app looks like this
import Network.Loli
import Hack.Handler.Happstack
You can have a description file named Nemesis, with content
nemesis = do
clean
[ **/*.hi
, **/*.o
, manifest
]
task dist $ do
sh cabal clean
sh cabal configure
sh cabal sdist
task i (sh ghci -isrc
= do
env - get_env
response - app env .liftIO
-- set response
response.headers.mapM_ (splash setHeader)
response.status.show.setHeader Status
response.body.output
On Apr 25, 2009, at 7:58 AM, Jinjing Wang wrote:
Hia,
A few interesting progress on Hack:
* many middleware ported
Hia,
A few interesting progress on Hack:
* many middleware ported from Rack, including a lambda! ( just like a
pony for wsgi, and a lobster for rack )
* 2 handlers, one for Kibro on fcgi / lighttpd, one for Hyena web server
* apps are portable, Bamboo is a port of Panda that runs on Hack,
works
Simplest app should look like this
module Main where
import Hack
import Hack.Handler.Kibro
hello :: Application
hello = \env - return $ Response
{ status = 200
, headers = [ (Content-Type, text/plain) ]
, body= Hello World
}
main =
22 matches
Mail list logo