Re: Template Haskell of GHC 7.8

2014-03-11 Thread 山本和彦
Hi,

Adam told a solution which uses mkName:

https://github.com/sol/doctest-haskell/issues/76

Unfortunately, I hit upon another issue of Template Haskell.
I will ask a question in another mail.

--Kazu

 Hi,
 
 The tests for doctest are not passed again with GHC 7.8:
 
 
 17) Property.runProperty reports the values for which a property that takes 
 multiple arguments fails
 expected: [False,0,\\]
  but got: [interactive:24:66:,\8216doctest_prop\8217 is not in the 
 type environment at a reify,In the splice: $(polyQuickCheck 
 'doctest_prop)]
 
 
 This comes from:
 
 src/Property.hs
   where
 quickCheck term vars =
   let doctest_prop  ++ unwords vars ++  =  ++ term ++
in $(polyQuickCheck 'doctest_prop)
 
 
 It seems to me that the behavior of GHC 7.8's Template Haskell
 changed. Would you tell me how to fix this?
 
 --Kazu
 ___
 ghc-devs mailing list
 ghc-devs@haskell.org
 http://www.haskell.org/mailman/listinfo/ghc-devs
___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs


RE: Template Haskell of GHC 7.8 (again)

2014-03-11 Thread Simon Peyton Jones
Yes: https://ghc.haskell.org/trac/ghc/ticket/8833
Austin is looking at this for the 7.8 release

Simon

| -Original Message-
| From: ghc-devs [mailto:ghc-devs-boun...@haskell.org] On Behalf Of Kazu
| Yamamoto
| Sent: 11 March 2014 06:32
| To: ghc-devs@haskell.org
| Subject: Template Haskell of GHC 7.8 (again)
| 
| Hi,
| 
| With the attached file, say Printf.hs, GHCi 7.6.3 works
| as follows:
| 
|   % ghci Printf.hs
|   [1 of 1] Compiling Printf   ( Printf.hs, interpreted )
|   Ok, modules loaded: Printf.
|:set -XTemplateHaskell
|putStrLn ( $(pr Hello) )
|   Hello
| 
| Hello is printed. Good. However, with GHC 7.8, the following error
| occurs:
| 
|   % ghci Printf.hs
|   [1 of 1] Compiling Printf   ( Printf.hs, interpreted )
|   Ok, modules loaded: Printf.
|:set -XTemplateHaskell
|putStrLn ( $(pr Hello) )
|   unknown package: main
| 
| Is this a bug of Template Haskell of GHC 7.8?
| 
| --Kazu
___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs


Re: Template Haskell of GHC 7.8 (again)

2014-03-11 Thread 山本和彦
Hi,

 Yes: https://ghc.haskell.org/trac/ghc/ticket/8833
 Austin is looking at this for the 7.8 release

Thanks. I guess you meant:
https://ghc.haskell.org/trac/ghc/ticket/8831

--Kazu

___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs


RE: Template Haskell of GHC 7.8 (again)

2014-03-11 Thread Simon Peyton Jones
Bother. Yes, correct.

| -Original Message-
| From: Kazu Yamamoto [mailto:k...@iij.ad.jp]
| Sent: 11 March 2014 11:58
| To: Simon Peyton Jones
| Cc: ghc-devs@haskell.org
| Subject: Re: Template Haskell of GHC 7.8 (again)
| 
| Hi,
| 
|  Yes: https://ghc.haskell.org/trac/ghc/ticket/8833
|  Austin is looking at this for the 7.8 release
| 
| Thanks. I guess you meant:
|   https://ghc.haskell.org/trac/ghc/ticket/8831
| 
| --Kazu

___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs


Safe Haskell

2014-03-11 Thread Simon Peyton Jones
David
Any views about https://ghc.haskell.org/trac/ghc/ticket/8827?
We propose to remove the recursive check (see the ticket for what that means).
Simon
___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs


Getting warnings when pushing to git.haskell.org

2014-03-11 Thread Johan Tibell
Hi,

I get the following warning every time I push to git.haskell.org. Anyone
have an idea what the correct fix is?

$ git push origin master
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
 LC_CTYPE = UTF-8,
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale (C).
Counting objects: 13, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 652 bytes | 0 bytes/s, done.
Total 7 (delta 6), reused 0 (delta 0)
remote: performing tab-check...
remote: perl: warning: Setting locale failed.
remote: perl: warning: Please check that your locale settings:
remote: LANGUAGE = (unset),
remote: LC_ALL = (unset),
remote: LC_CTYPE = UTF-8,
remote: LANG = (unset)
remote: are supported and installed on your system.
remote: perl: warning: Falling back to the standard locale (C).
remote: mirroring ssh://g...@git.haskell.org/ghc to ssh://
g...@github.com/ghc/ghc ...
remote: To ssh://g...@github.com/ghc/ghc
remote:22e4bba..d8b3826  master - master
remote: running notifier
To ssh://g...@git.haskell.org/ghc.git
   22e4bba..d8b3826  master - master
___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs


Re: Getting warnings when pushing to git.haskell.org

2014-03-11 Thread Roman Cheplyaka
Try setting your locale to something like en_US.UTF-8:

  export LANG=en_US.UTF-8
  unset LC_CTYPE

* Johan Tibell johan.tib...@gmail.com [2014-03-11 22:15:16+0100]
 Hi,
 
 I get the following warning every time I push to git.haskell.org. Anyone
 have an idea what the correct fix is?
 
 $ git push origin master
 perl: warning: Setting locale failed.
 perl: warning: Please check that your locale settings:
 LANGUAGE = (unset),
 LC_ALL = (unset),
  LC_CTYPE = UTF-8,
 LANG = (unset)
 are supported and installed on your system.
 perl: warning: Falling back to the standard locale (C).
 Counting objects: 13, done.
 Delta compression using up to 8 threads.
 Compressing objects: 100% (7/7), done.
 Writing objects: 100% (7/7), 652 bytes | 0 bytes/s, done.
 Total 7 (delta 6), reused 0 (delta 0)
 remote: performing tab-check...
 remote: perl: warning: Setting locale failed.
 remote: perl: warning: Please check that your locale settings:
 remote: LANGUAGE = (unset),
 remote: LC_ALL = (unset),
 remote: LC_CTYPE = UTF-8,
 remote: LANG = (unset)
 remote: are supported and installed on your system.
 remote: perl: warning: Falling back to the standard locale (C).
 remote: mirroring ssh://g...@git.haskell.org/ghc to ssh://
 g...@github.com/ghc/ghc ...
 remote: To ssh://g...@github.com/ghc/ghc
 remote:22e4bba..d8b3826  master - master
 remote: running notifier
 To ssh://g...@git.haskell.org/ghc.git
22e4bba..d8b3826  master - master

 ___
 ghc-devs mailing list
 ghc-devs@haskell.org
 http://www.haskell.org/mailman/listinfo/ghc-devs



signature.asc
Description: Digital signature
___
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs