[Haskell-cafe] Explicit forall - Strange Error

2012-07-31 Thread Shayan Najd Javadipour
Hi, I wonder why the following code doesn't typecheck in GHC 7.4.1: {-# LANGUAGE GADTs,RankNTypes #-}data T a where T1 :: (forall b. b - b) - (forall a. Int - T a) {- Error: Data constructor `T1' returns type `forall a. Int - T a' instead of an instance of its parent type `T a' In the

Re: [Haskell-cafe] Explicit forall - Strange Error

2012-07-31 Thread Shayan Najd Javadipour
...@yandex.ru wrote: It really seems to me that the error message you've got explains everything quite clear. Отправлено с iPad 31.07.2012, в 22:59, Shayan Najd Javadipour sh.n...@gmail.com написал(а): Hi, I wonder why the following code doesn't typecheck in GHC 7.4.1: {-# LANGUAGE

[Haskell-cafe] Typing Judgments for Haskell2010++

2012-06-05 Thread Shayan Najd Javadipour
Hi Haskell Cafe! To develop Haskell-Type-Exts (HTE) [1,2], I need to have typing judgments for each language construct in Haskell 2010 with two extensions: RankNTypes and local assumptions (GADTs, Type Functions and etc). Since I could not find any academic paper describing a type system

[Haskell-cafe] Haskell-Type-Exts -- Typechecker as a Library

2012-05-07 Thread Shayan Najd Javadipour
Hello Haskell Cafe! Recently, I got my proposal “Haskell-Type-Exts”--submitted to haskell community--accepted for Google SoC 2012! I have the luxury (thanks to Haskell.org GSoC committee) to develop a typechecker[1] for ASTs extracted by HSE[2] during this summer. HSE is one of the most widely