Re: [GHC] #6162: defer-type-errors + unsafeCoerce

2012-06-15 Thread GHC
#6162: defer-type-errors + unsafeCoerce ---+ Reporter: guest | Owner: Type: feature request | Status: closed Priority: normal

Re: [GHC] #6162: defer-type-errors + unsafeCoerce

2012-06-15 Thread GHC
#6162: defer-type-errors + unsafeCoerce --+- Reporter: guest | Owner: Type: feature request| Status: new Priority: normal | Milestone

[GHC] #6162: defer-type-errors + unsafeCoerce

2012-06-14 Thread GHC
#6162: defer-type-errors + unsafeCoerce --+- Reporter: guest | Owner: Type: feature request | Status: new Priority: normal| Component

Re: [GHC] #5015: Can't unsafeCoerce a GADT with a coercion

2011-03-11 Thread GHC
#5015: Can't unsafeCoerce a GADT with a coercion --+- Reporter: TristanAllwood | Owner: Type: bug | Status: closed Priority: n

Re: [GHC] #5015: Can't unsafeCoerce a GADT with a coercion

2011-03-11 Thread GHC
#5015: Can't unsafeCoerce a GADT with a coercion -+-- Reporter: TristanAllwood| Owner: Type: bug | Status: new Priority: n

[GHC] #5015: Can't unsafeCoerce a GADT with a coercion

2011-03-11 Thread GHC
#5015: Can't unsafeCoerce a GADT with a coercion -+-- Reporter: TristanAllwood| Owner: Type: bug | Status: new Priority: n

Re: [GHC] #4166: unsafeCoerce#'s kind is not as liberal enough to inspect tag bits.

2010-07-05 Thread GHC
#4166: unsafeCoerce#'s kind is not as liberal enough to inspect tag bits. --+- Reporter: ekmett | Owner: Type: feature request | Status: closed Pri

Re: [GHC] #4166: unsafeCoerce#'s kind is not as liberal enough to inspect tag bits.

2010-07-02 Thread GHC
#4166: unsafeCoerce#'s kind is not as liberal enough to inspect tag bits. -+-- Reporter: ekmett| Owner: Type: feature request | Status: new Priority: n

[GHC] #4166: unsafeCoerce#'s kind is not as liberal enough to inspect tag bits.

2010-07-02 Thread GHC
#4166: unsafeCoerce#'s kind is not as liberal enough to inspect tag bits. -+-- Reporter: ekmett| Owner: Type: feature request | Status: new Priority: n

Re: [GHC] #4090: Impossible compilation with primitive operations (possibly unsafeCoerce#)

2010-05-24 Thread GHC
#4090: Impossible compilation with primitive operations (possibly unsafeCoerce#) -+-- Reporter: malosh | Owner: Type: bug | Status: closed Priority: normal

Re: [GHC] #4090: Impossible compilation with primitive operations (possibly unsafeCoerce#)

2010-05-24 Thread GHC
#4090: Impossible compilation with primitive operations (possibly unsafeCoerce#) -+-- Reporter: malosh | Owner: Type: bug | Status: closed Priority: normal

Re: [GHC] #4090: Impossible compilation with primitive operations (possibly unsafeCoerce#)

2010-05-23 Thread GHC
#4090: Impossible compilation with primitive operations (possibly unsafeCoerce#) +--- Reporter: malosh | Owner: Type: bug | Status: new Priority: normal

[GHC] #4090: Impossible compilation with primitive operations (possibly unsafeCoerce#)

2010-05-23 Thread GHC
#4090: Impossible compilation with primitive operations (possibly unsafeCoerce#) +--- Reporter: malosh | Owner: Type: bug | Status: new Priority: normal

Re: [GHC] #3948: unsafeCoerce leaks types

2010-03-31 Thread GHC
#3948: unsafeCoerce leaks types ---+ Reporter: ksf | Owner: Type: bug | Status: closed Priority: normal| Milestone

Re: [GHC] #3949: unsafeCoerce leaks types

2010-03-30 Thread GHC
#3949: unsafeCoerce leaks types -+-- Reporter: ksf | Owner: Type: bug | Status: closed Priority: normal| Component: Template Haskell

[GHC] #3949: unsafeCoerce leaks types

2010-03-30 Thread GHC
#3949: unsafeCoerce leaks types ---+ Reporter: ksf | Owner: Type: bug | Status: new Priority: normal | Component: Template

[GHC] #3948: unsafeCoerce leaks types

2010-03-30 Thread GHC
#3948: unsafeCoerce leaks types ---+ Reporter: ksf | Owner: Type: bug | Status: new Priority: normal | Component: Template

Re: [GHC] #994: add 'unsafeCoerce' to a standard location in the hierarchical libraries

2007-11-25 Thread GHC
#994: add 'unsafeCoerce' to a standard location in the hierarchical libraries ---+ Reporter: [EMAIL PROTECTED] | Owner: Type: proposal | Statu

Re: [GHC] #1482: unsafeCoerce# doesn't always fully coerce

2007-08-17 Thread GHC
#1482: unsafeCoerce# doesn't always fully coerce +--- Reporter: [EMAIL PROTECTED] |Owner: Type: bug | Status: closed Priority: n

Re: [GHC] #1482: unsafeCoerce# doesn't always fully coerce

2007-07-02 Thread GHC
#1482: unsafeCoerce# doesn't always fully coerce +--- Reporter: [EMAIL PROTECTED] |Owner: Type: bug | Status: new Priority: n

Re: [GHC] #1482: unsafeCoerce# doesn't always fully coerce

2007-07-02 Thread GHC
#1482: unsafeCoerce# doesn't always fully coerce +--- Reporter: [EMAIL PROTECTED] |Owner: Type: bug | Status: new Priority: n

Re: [GHC] #1482: unsafeCoerce# doesn't always fully coerce

2007-07-01 Thread GHC
#1482: unsafeCoerce# doesn't always fully coerce +--- Reporter: [EMAIL PROTECTED] |Owner: Type: bug | Status: new Priority: n

Re: [GHC] #1482: unsafeCoerce# doesn't always fully coerce

2007-07-01 Thread GHC
#1482: unsafeCoerce# doesn't always fully coerce +--- Reporter: [EMAIL PROTECTED] |Owner: Type: bug | Status: new Priority: n

[GHC] #1482: unsafeCoerce# doesn't always fully coerce

2007-07-01 Thread GHC
#1482: unsafeCoerce# doesn't always fully coerce --+- Reporter: [EMAIL PROTECTED] | Owner: Type: bug | Status: new Priority: n

Re: [GHC] #994: add 'unsafeCoerce' to a standard location in the hierarchical libraries

2007-01-26 Thread GHC
#994: add 'unsafeCoerce' to a standard location in the hierarchical libraries ---+ Reporter: [EMAIL PROTECTED] | Owner: Type: proposal | St

Re: [GHC] #994: add 'unsafeCoerce' to a standard location in the hierarchical libraries

2006-11-13 Thread John Meacham
jhc calls it unsafeCoerce__ and it lives in Jhc.Prim. In general, I use the trailing __ to mean what abafthash does in ghc. John -- John Meacham - ⑆repetae.net⑆john⑈ ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://

Re[2]: [GHC] #994: add 'unsafeCoerce' to a standard location in the hierarchical libraries

2006-11-13 Thread Bulat Ziganshin
Hello GHC, Monday, November 13, 2006, 3:18:13 PM, you wrote: > Unsafe.Coerce. Later proposals might want to move some of the Array and > IO operations into this new Unsafe.* hierarchy as well. it seems that you misunderstood situation: you will need to move whole Array implementation to such

Re: [GHC] #994: add 'unsafeCoerce' to a standard location in the hierarchical libraries

2006-11-13 Thread GHC
#994: add 'unsafeCoerce' to a standard location in the hierarchical libraries ---+ Reporter: [EMAIL PROTECTED] | Owner: Type: proposal | St

Re: [GHC] #994: add 'unsafeCoerce' to a standard location in the hierarchical libraries

2006-11-13 Thread GHC
#994: add 'unsafeCoerce' to a standard location in the hierarchical libraries ---+ Reporter: [EMAIL PROTECTED] | Owner: Type: proposal | St

Re: [GHC] #994: add 'unsafeCoerce' to a standard location in the hierarchical libraries

2006-11-10 Thread GHC
#994: add 'unsafeCoerce' to a standard location in the hierarchical libraries ---+ Reporter: [EMAIL PROTECTED] | Owner: Type: proposal | St

Re: [GHC] #994: add 'unsafeCoerce' to a standard location in the hierarchical libraries

2006-11-10 Thread GHC
#994: add 'unsafeCoerce' to a standard location in the hierarchical libraries ---+ Reporter: [EMAIL PROTECTED] | Owner: Type: proposal | St

[GHC] #994: add 'unsafeCoerce' to a standard location in the hierarchical libraries

2006-11-10 Thread GHC
#994: add 'unsafeCoerce' to a standard location in the hierarchical libraries --+- Reporter: [EMAIL PROTECTED] | Owner: Type: feature request| Status: new

Re: unsafeCoerce#

2006-07-31 Thread Neil Mitchell
/06, Simon Peyton-Jones <[EMAIL PROTECTED]> wrote: Good idea. There's suitable section here in the HEAD manual, here: http://www.haskell.org/ghc/dist/current/docs/users_guide/special-ids.htm l#id3159468 I'll add a subsection about unsafeCoerce# Simon | -Original Message

RE: unsafeCoerce#

2006-07-31 Thread Simon Peyton-Jones
Good idea. There's suitable section here in the HEAD manual, here: http://www.haskell.org/ghc/dist/current/docs/users_guide/special-ids.htm l#id3159468 I'll add a subsection about unsafeCoerce# Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] |

Re: unsafeCoerce#

2006-07-30 Thread wld
On 7/31/06, Neil Mitchell <[EMAIL PROTECTED]> wrote: Hi, Finding unsafeCoerce# in the documentation is challenging at best. It's not indexed by Haddock, which in turn means its not indexed by Hoogle. Lambdabot doesn't find it. Googling gave me GhcExts (from an old Happy file),

unsafeCoerce#

2006-07-30 Thread Neil Mitchell
Hi, Finding unsafeCoerce# in the documentation is challenging at best. It's not indexed by Haddock, which in turn means its not indexed by Hoogle. Lambdabot doesn't find it. Googling gave me GhcExts (from an old Happy file), which I guessed at GHC.Exts. Someone in #haskell suggeste

RE: Illtyped generated code with unsafeCoerce#, F# and -O

2005-03-11 Thread Simon Marlow
Agree, a primop would be a more robust solution. I think it's more correct to say that unsafeCoerce can only coerce from type T to U iff typeCgReg T == typeCgRep U (hmm, this is necessary, but not sufficient). We might want to check for this? Don: as a quick hack, you could use an inl

RE: Illtyped generated code with unsafeCoerce#, F# and -O

2005-03-11 Thread Simon Peyton-Jones
rated code with unsafeCoerce#, F# and -O | | On 11 March 2005 01:45, Donald Bruce Stewart wrote: | | > Hey guys, | > | > The following (evil, yes) program compiles and works under ghc -Onot | > using -fasm or -fvia-C, but fails to generated correct code under all | > GHCs back to ghc-5.04.2 i

RE: Illtyped generated code with unsafeCoerce#, F# and -O

2005-03-11 Thread Simon Marlow
hci). > > When working it runs and produces the following (correct) result: > > paprika$ ./a.out > .0 > (69,243,8,0) > .0 > > However, if I turn on -O it fails to generate acceptable asm or C. > > Am I right in thinking that all uses of unsafe

Re: Illtyped generated code with unsafeCoerce#, F# and -O

2005-03-10 Thread Donald Bruce Stewart
wolfgang.thaller: > >g (F# f) = > >let w = W32# (unsafeCoerce# f) > > Why does GHC even accept this code? > I think unsafeCoerce# is not intended to be able to coerce unboxed > values. > > Prelude GHC.Base> :t unsafeCoerce# > unsafeCoerce#

Re: Illtyped generated code with unsafeCoerce#, F# and -O

2005-03-10 Thread Wolfgang Thaller
g (F# f) = let w = W32# (unsafeCoerce# f) Why does GHC even accept this code? I think unsafeCoerce# is not intended to be able to coerce unboxed values. Prelude GHC.Base> :t unsafeCoerce# unsafeCoerce# :: forall b a. a -> b The type variables a and b are supposed to be of kind

Illtyped generated code with unsafeCoerce#, F# and -O

2005-03-10 Thread Donald Bruce Stewart
$ ./a.out .0 (69,243,8,0) .0 However, if I turn on -O it fails to generate acceptable asm or C. Am I right in thinking that all uses of unsafeCoerce# should never cause type-incorrect C or asm code to be generated (no matter what evil happens at runtime)? Now, -dcore-lint is