lomeo: (лямбда)
[personal profile] lomeo
Вот здесь у меня висит на выводе типа myFix:

newtype Fun a = Fun (Fun a -> a)
 
fun x@(Fun f) = f x
 
myFix = fun (Fun fun)


Запускал в GHCi 6.6

Date: 2007-04-10 11:08 am (UTC)
From: [identity profile] thesz.livejournal.com
module A where

newtype Fun a = Fun (Fun a -> a)
 
fun x@(Fun f) = f x
 
myFix = fun (Fun fun)
Компилирую 'ghc -ddump-tc -c a.hs'. Тайпчекер выводит все правильно.

Может, это где-то еще?

Date: 2007-04-10 11:25 am (UTC)
From: [identity profile] lomeo.livejournal.com
Наверное в моем компилере бага.
Кстати, если делаю -ddump-tc, то выводит типы верно, а потом опять подвисает.
Попробую переставить GHC, но позже.

Спасибо!

Date: 2007-04-10 11:42 am (UTC)
From: [identity profile] thesz.livejournal.com
Забыл дополнить - у меня тоже 6.6.2 и тоже виснет.

Сейчас заменил newtype на data - все равно виснет.

Похоже, все же tc.

Date: 2007-04-12 03:03 pm (UTC)
From: [identity profile] justbulat.livejournal.com
ещё 6.6.1 не вышел :D

Date: 2007-04-12 04:27 pm (UTC)
From: [identity profile] thesz.livejournal.com
C:\...менты\Downloads\seen\SPARC\plans>ghc -v
Glasgow Haskell Compiler, Version 6.6.20061017, for Haskell 98, compiled by GHC
version 6.6.20061017
Using package config file: C:\ghc\ghc-6.6.20061224\package.conf
wired-in package base mapped to base-2.0
wired-in package rts mapped to rts-1.0
wired-in package haskell98 mapped to haskell98-1.0
wired-in package template-haskell mapped to template-haskell-2.0
Hsc static flags: -static
*** Deleting temp files:
Deleting:
*** Deleting temp dirs:
Deleting:
ghc.EXE: no input files
Usage: For basic information, try the `--help' option.
Вот. ;)

Date: 2007-04-12 04:36 pm (UTC)
From: [identity profile] deni-ok.livejournal.com
Эээ... Может это год 2006?


We are aiming for a 6.6.1 release candidate on the 6th April, and release on the 20th April.

отсюда http://hackage.haskell.org/trac/ghc

Date: 2007-04-12 04:52 pm (UTC)
From: [identity profile] thesz.livejournal.com
Видать.

У меня уже голова не варит.

Date: 2007-04-10 11:26 am (UTC)
From: [identity profile] migmit.livejournal.com
Какая версия ghc? У меня, опять-таки, виснет.

Date: 2007-04-10 11:43 am (UTC)
From: [identity profile] thesz.livejournal.com
6.6.2, тоже виснет, но типы выводит правильные (судя по -ddump-tc).

Date: 2007-04-10 12:40 pm (UTC)
From: [identity profile] migmit.livejournal.com
Ну дык так бы сразу и сказал. У всех так.

Date: 2007-04-10 12:54 pm (UTC)
From: [identity profile] thesz.livejournal.com
А непонятно, почему.

Я даже сигнатуры указал, все равно виснет.

Profile

lomeo: (Default)
Dmitry Antonyuk

April 2024

S M T W T F S
 123456
7891011 1213
14151617181920
21222324252627
282930    

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 28th, 2025 08:09 pm
Powered by Dreamwidth Studios