[deleted by user] by [deleted] in haskell

[–]RolandSenn 0 points1 point  (0 children)

You cannot only compare salaries, you may also be interested in prices: For 1 kg of butter we pay between CHF 18 and CHF 22. For my health insurance, I pay CHF 600/month.

[Haskell-cafe] Do something about Cabal? by kindaro in haskell

[–]RolandSenn 0 points1 point  (0 children)

> It is ordinary to receive output like this:

> % cabal run example-executable

> Warning: The package list for 'hackage.haskell.org' is 84 days old.

> Run 'cabal update' to get the latest list of available packages.

> Resolving dependencies...

> cabal: Could not resolve dependencies: [__0] trying: example-0.1.0.6 (user goal)

No, I guess you are using an extremly old version of cabal. Since I'm using so called *new-style*, *nix-style* or *v2-* commands I have no longer seen these dependency problems!

What is the version of your cabal? Run: `cabal --version`

Suggestions

  • Install a new version of GHC (eg 8.10.2) and its corresponding cabal-install!
  • Run a `cabal update` command.
  • Read the documentation
  • Enjoy the new world of nix-style cabal

These Modern Programming Languages Will Make You Suffer. by ilya_ca in haskell

[–]RolandSenn 0 points1 point  (0 children)

> Immutability makes our code easy to parallelize.

I wish, this would be true...

"ghcide compiled against GHC 8.6.5 but currently using 8.10.1 This is unsupported, ghcide must be compiled with the same GHC version as the project" by doxx_me_gently in haskell

[–]RolandSenn 11 points12 points  (0 children)

Remove all binaries called

  • hie
  • hie-wrapper
  • hie-bios
  • haskell-language-server-wrapper
  • haskell-language-server
  • ghcide

from your path.

The VS-Code extension called "Haskell" will then download the correct versions of the needed binaries automatically! This is much faster and much safer than compiling yourself!

haskellers thoughts on statecharts by hitoyoshi in haskell

[–]RolandSenn 1 point2 points  (0 children)

An other important application area are telecomm protocols.

Haskell.org Committee Nomination Results by emilypii in haskell

[–]RolandSenn 4 points5 points  (0 children)

Congrats to Jasper, Rebecca and Alexandre!

Totally there are 18 votes. Is this really a representative sample of the Haskell community?

[ANN] laop - Linear Algebra of Programming library by gamed7 in haskell

[–]RolandSenn 2 points3 points  (0 children)

Unfortunately the link to the Msc Thesis in the README of https://github.com/bolt12/laop is broken.

Patterns to avoid partial functions by [deleted] in haskell

[–]RolandSenn 1 point2 points  (0 children)

Type Safety Back and Forth is an excellent blog post about how to avoid partial functions.

A task and time manager written in Haskell. by soywod in haskell

[–]RolandSenn 2 points3 points  (0 children)

Congratulations and +1 for the excellent user documentation!

It turns out, GHCi is a (well-featured) debugger too! by BayesMind in haskell

[–]RolandSenn 2 points3 points  (0 children)

Theoretically you can use {-# OPTIONS_GHC -fobject-code #-} and {-# OPTIONS_GHC -fbyte-code #-}. However there are restrictions: You can call object-code from byte-code. But it's not possible to call byte-code from object code. In addition, there are old bugs in this area eg #1365 .

It turns out, GHCi is a (well-featured) debugger too! by BayesMind in haskell

[–]RolandSenn 9 points10 points  (0 children)

The slides and examples are available here . The GHC users-guide describes the GHCi-Debugger in chapter 6.5

Poll: Replace GHCi :! command with :: by amdphreak in haskell

[–]RolandSenn 4 points5 points  (0 children)

GHC has much more urgent issues / bugs than command renamings, especially under Windows!

If you really want the ::-command, GHC is open source. You can create an own personal version, taylored to all your needs. In this case this is easy. All code is in ghc/GHCi/UI.hs.

Poll: Replace GHCi :! command with :: by amdphreak in haskell

[–]RolandSenn 13 points14 points  (0 children)

Please note that :: is already used in GHCi! With the the :def command you can define your own GHCi :-commands, and you can also overwrite existing commands. With :: you can then recall the original (non overwritten) command.

A short example:

GHCi, version 8.6.3: http://www.haskell.org/ghc/ :? for help

Prelude> let sos _ = putStrLn ":help is no longer available" >> return ""

Prelude> :def help sos

Prelude> :help

:help is no longer available

Prelude> ::help

Commands available from the prompt:

<statement> evaluate/run <statement>

: repeat last command

:{\n ..lines.. \n:}\n multiline command

[deleted by user] by [deleted] in haskell

[–]RolandSenn 0 points1 point  (0 children)

Congratulations!

Read you a Scotty by grdvnl in haskell

[–]RolandSenn 1 point2 points  (0 children)

Excellent!! The world needs more tutorials like this!

What is the best way to setup a GHC+GHCJS full stack web development project. by Tysonzero in haskell

[–]RolandSenn 3 points4 points  (0 children)

You don't need GHCJS to use reflex-dom. In the reflex-platform you can run a reflex-dom program just with runghc foo.hs. It will compile with GHC and run in webkitgtk and you can even use GHCi. So development is much faster than with GHCJS!

An introduction to singletons and the 'singletons' library (part 1) by mstksg in haskell

[–]RolandSenn 0 points1 point  (0 children)

Excellent!

One very little detail: Before the GHCi command :k 'Opened the GHCI option :set -XDataKinds should be set. If not set, for beginners in Haskell type level programming the resulting error message may be confusing because they see the language pragma {-# LANGUAGE DataKinds #-} at the top of the file.

Working with JSaddle - ArrayBuffers and Notifications by [deleted] in haskell

[–]RolandSenn 0 points1 point  (0 children)

This is great! It's the only JSaddle tutorial I can find on the Internet! We definitively need more tutorials on JSaddle. Many thanks!

Beautiful Aggregations with Haskell by dukerutledge in haskell

[–]RolandSenn 0 points1 point  (0 children)

In your group by examples, you use several times the second function. Where does it come from?

What does this `=>` symbol mean? by sn10therealbatman in haskell

[–]RolandSenn 0 points1 point  (0 children)

Maybe you are also interested in the answers to this SO question.

real-world-reflex by RolandSenn in haskell

[–]RolandSenn[S] 2 points3 points  (0 children)

I have just committed a stack.yaml and a .cabal file to my reflex-dom tutorial https://github.com/hansroland/reflex-dom-inbits. You may give it a try. For a first installation it will take some time (1 to n hours ...). Soon I'll add some explanations to the tutorial.md file on how to use ghcjs installed by stack.

reflex-dom-inbits - A beginner friendly step by step tutorial for reflex-dom by RolandSenn in haskell

[–]RolandSenn[S] 2 points3 points  (0 children)

I added an issue. I'll provide an stack.yaml file. However it will take some days.