How to split a string in Haskell?

Is there a standard way to split a string in Haskell? lines and words work great from splitting on a space or newline, but surely there is a standard way to split on a comma? I couldn’t find it on Hoogle. To be specific, I’m looking for something where split “,” “my,comma,separated,list” returns [“my”,”comma”,”separated”,”list”]. 14 … Read more

What is an appropriate type for smart contracts?

I’m wondering what is the best way to express smart contracts in typed languages such as Haskell or Idris (so you could, for example, compile it to run on the Ethereum network). My main concern is: what is the type that captures everything that a contract could do? Naive solution: EthIO A naive solution would … Read more

Reading GHC Core

Core is GHC’s intermediate language. Reading Core can help you better understand the performance of your program. Someone asked me for documentation or tutorials on reading Core, but I couldn’t find much. What documentation is available for reading GHC Core? Here’s what I’ve found so far: Write Haskell as fast as C: exploiting strictness, laziness … Read more

Are there pronounceable names for common Haskell operators? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Closed 4 years ago. Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. I’m reading Learn You a Haskell for Great Good, and I never know how … Read more

When is -XAllowAmbiguousTypes appropriate?

I’ve recently posted a question about syntactic-2.0 regarding the definition of share. I’ve had this working in GHC 7.6: {-# LANGUAGE GADTs, TypeOperators, FlexibleContexts #-} import Data.Syntactic import Data.Syntactic.Sugar.BindingT data Let a where Let :: Let (a :-> (a -> b) :-> Full b) share :: (Let :<: sup, sup ~ Domain b, sup ~ … Read more

Running a Haskell program on the Android OS

Forenote: This is an extension of the thread started on /r/haskell Lets start with the facts: Android is one awesome Operating System Haskell is the best programming language on the planet Therefore, clearly, combining them would make Android development that much better. So essentially I would just like to know how I can write Haskell … Read more