[Haskell-cafe] Annotation problem after HP reinstalation

2013-06-26 Thread Vlatko Basic
I uninstalled haskell-platform, deleted .cabal and .ghc dirs and reinstalled it (on Ubuntu), but now the annotation (and other annotations) {-# ANN module "HLint: ignore Eta reduce" #-} produces error Ambiguous type variable `a0' in the constraints: (Data a0) arising from an annotation a

Re: [Haskell-cafe] Annotation problem after HP reinstalation

2013-06-26 Thread Vlatko Basic
Vlatko Basic [vlatko.ba...@gmail.com] Sent: Wednesday, June 26, 2013 11:05 AM Cc: Haskell-Cafe Subject: [Haskell-cafe] Annotation problem after HP reinstalation I uninstalled haskell-platform, deleted .cabal and .ghc dirs and reinstalled it (on Ubuntu), but now the annotation (and other annotations

[Haskell-cafe] "Casting" newtype to base type?

2013-07-01 Thread Vlatko Basic
Hello Cafe! I had a (simplified) record data P = P { a :: String, b :: String, c :: IO String } deriving (Show, Eq) but to get automatic deriving of 'Show' and 'Eq' for 'data P' I have created 'newtype IOS' and its 'Show' and 'Eq' instances newtype IOS = IO String insta

[Haskell-cafe] Spam on list??

2013-07-01 Thread Vlatko Basic
Title: 인증페이지시안1 Anybody else getting this spam emails from j...@eukor.com every time a message is sent to Cafe? Original Message Subject: Re: [Haskell-cafe] "Casting" newtype to base type? From: j...@eukor.com To: m

Re: [Haskell-cafe] "Casting" newtype to base type?

2013-07-01 Thread Vlatko Basic
Cafe Date: 01.07.2013 17:24 On 1 Jul 2013, at 16:07, Vlatko Basic wrote: I had a (simplified) record data P = P { a :: String, b :: String, c :: IO String } deriving (Show, Eq) but to get automatic deriving of 'Show' and 'Eq' for 'data P' I have c

Re: [Haskell-cafe] "Casting" newtype to base type?

2013-07-01 Thread Vlatko Basic
ul 01, 2013 at 05:07:00PM +0200, Vlatko Basic wrote: Hello Cafe! I had a (simplified) record data P = P { a :: String, b :: String, c :: IO String } deriving (Show, Eq) but to get automatic deriving of 'Show' and 'Eq' for 'data P' I have creat

Re: [Haskell-cafe] "Casting" newtype to base type?

2013-07-02 Thread Vlatko Basic
> IO String getC_IO p = case getC p of IOS a -> a getC_IO (P _ _ (IOS a)) = a Original Message Subject: Re: [Haskell-cafe] "Casting" newtype to base type? From: Malcolm Wallace To: vlatko.ba...@gmail.com Cc: Haskell-Cafe Date: 01.07.2013 17:24 On 1 Jul 2

Re: [Haskell-cafe] "Casting" newtype to base type?

2013-07-02 Thread Vlatko Basic
Original Message Subject: Re: [Haskell-cafe] "Casting" newtype to base type? From: Tom Ellis To: haskell-cafe@haskell.org Date: 02.07.2013 15:25 On Tue, Jul 02, 2013 at 03:03:08PM +0200, Vlatko Basic wrote: Is there a nicer way to extract the 'IO St

[Haskell-cafe] Comparing functions

2013-07-11 Thread Vlatko Basic
Hello Cafe, I have data CmpFunction a = CF (a -> a -> Bool) that contains comparing functions, like ==, <, > ..., and I'm trying to declare the Show instance for it like this instance Show (CmpFunction a) where show (CF (==)) = "== " -- no good show f =

Re: [Haskell-cafe] Comparing functions

2013-07-11 Thread Vlatko Basic
11, 2013 at 1:33 PM, Vlatko Basic <vlatko.ba...@gmail.com> wrote:     data CmpFunction a = CF (a -> a -> Bool) that contains comparing functions, like ==, <, > ..., and I'm try

Re: [Haskell-cafe] Comparing functions

2013-07-11 Thread Vlatko Basic
11, 2013 at 2:11 PM, Vlatko Basic <vlatko.ba...@gmail.com> wrote: The problem here isn't quite what you think it is; (==) is not a

Re: [Haskell-cafe] Comparing functions

2013-07-11 Thread Vlatko Basic
11, 2013 at 2:58 PM, Vlatko Basic <vlatko.ba...@gmail.com>

Re: [Haskell-cafe] Comparing functions

2013-07-12 Thread Vlatko Basic
Cheplyaka To: Vlatko Basic Cc: Haskell-Cafe Date: 11.07.2013 20:10 * Vlatko Basic [2013-07-11 19:33:38+0200] Hello Cafe, I have data CmpFunction a = CF (a -> a -> Bool) that contains comparing functions, like ==, <, > ..., and I'm trying to declare the Sho

[Haskell-cafe] Problem with HXT `when`

2013-09-21 Thread Vlatko Basic
Hello Cafe, I have this HTML structure: ... ... Caption Want this And this Another caption Yet another caption ... ... I'd like to extract A texts from row with

Re: [Haskell-cafe] Problem with HXT `when`

2013-09-25 Thread Vlatko Basic
de the arrow by pairing the list items?) Something like: hasName "a" /> getText &&& (getNextItem??? >>> getText) I assume not, but I'm still new to Haskell and would like to check. br, vlatko Original Message ---- Subject: Re: [Haskell-

[Haskell-cafe] No upgrade of GHC version in Ubuntu repository

2013-10-14 Thread Vlatko Basic
Hi Caffe, deb packages of GHC (and Haskell Platform) in Ubuntu's (LTS Precise, 12.04) "universe" are not upgrading at all. GHC package is almost two years old, still on version 7.4.1, and GHC site still recommends to use Haskell Platform from repository. Even kernel is upgrading more often,

Re: [Haskell-cafe] No upgrade of GHC version in Ubuntu repository

2013-10-14 Thread Vlatko Basic
message --- From: "Vlatko Basic" <vlatko.ba...@gmail.com> Date: 14 October 2013, 11:44:17 Hi Caffe, deb packages of GHC (and Haskell Platform) in Ubuntu's (LTS Precise, 12.04) "universe" are not upgrading at

Re: [Haskell-cafe] No upgrade of GHC version in Ubuntu repository

2013-10-14 Thread Vlatko Basic
urces list. --- Original message --- From: "Vlatko Basic" <vlatko.ba...@gmail.com> Date: 14 October 2013, 13:28:21 Hi Danylo, I have 7.6.3 already, but I was wondering why the

Re: [Haskell-cafe] No upgrade of GHC version in Ubuntu repository

2013-10-14 Thread Vlatko Basic
itory From: Simon Hengel To: Vlatko Basic Cc: Lizanets Danylo , haskell-cafe@haskell.org Date: 14.10.2013 15:33 Hi, On Mon, Oct 14, 2013 at 01:28:17PM +0200, Vlatko Basic wrote: I have 7.6.3 already, but I was wondering why the repository packages are not maintained. 12.04 is an LTS for 5 years,

[Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Vlatko Basic
Hi, I'd like to start using web pages as the UI for apps. I found out for yesod, snapp and happstack as the candidates. Would you recommend any of them as better for app ui (not "classical" web pages)? Or maybe another one? thanks, vlatko ___ Haske

Re: [Haskell-cafe] HTML framework for web-ui

2013-05-21 Thread Vlatko Basic
find examples here:   http://haskell-web.blogspot.com.es/ 2013/5/21 Vlatko Basic <vlatko.ba...@gmail.com> Hi, I'd like to start using web pages as the UI for apps. I found out for

Re: [Haskell-cafe] HTML framework for web-ui

2013-05-22 Thread Vlatko Basic
Hi Heinrich, Looks simple and interesting. I browsed the git, but not much docs yet. Just examples, or have I looked at wrong places? I see that API is still under heavy design. When do you expect the API might stabilize? (BTW, examples in Readme do not work.) vlatko Vlatko Basic wrote