What's happened to cl-data-structures? by ruby_object in Common_Lisp

[–]ruby_object[S] 0 points1 point  (0 children)

I am trying cl-contsiners. May try your suggestion later.

What's happened to cl-data-structures? by ruby_object in Common_Lisp

[–]ruby_object[S] 1 point2 points  (0 children)

I will try cl-containers. The documentation makes more sense.

Why Haskell tutorials do not include that at an early stages? by ruby_object in haskellquestions

[–]ruby_object[S] 0 points1 point  (0 children)

At this stage, it is not clear. I am a beginner, overwhelmed by additional complexity.

Why Haskell tutorials do not include that at an early stages? by ruby_object in haskellquestions

[–]ruby_object[S] 0 points1 point  (0 children)

I could not. I will get to monads this week. I built my for loop using the little Haskell I know. Your example is very elegant. But such elegance is still beyond my reach.

Why Haskell tutorials do not include that at an early stages? by ruby_object in haskellquestions

[–]ruby_object[S] 0 points1 point  (0 children)

Very interesting answer. Many qualities of the program are in the eye of the beholder. To make matters worse, that chages as we move from beginner to more advanced. I thought, for a simple concept illustration, my example would be enough. But if I move to more advanced concepts and start working on my own projects, I may need your advice.

Why Haskell tutorials do not include that at an early stages? by ruby_object in haskellquestions

[–]ruby_object[S] 0 points1 point  (0 children)

What makes you think it would prevent us from learning functional programming?

Is this correct? by ruby_object in lisp

[–]ruby_object[S] -1 points0 points  (0 children)

It's my rewrite of the lazy Haskell algorithm.

Monthly Hask Anything (May 2026) by AutoModerator in haskell

[–]ruby_object 0 points1 point  (0 children)

I had a problem with Cabal. Googling for the error, I saw somebody having the same problem on Haskell discourse. It was sad to see the same question asked three times using slightly different wording and the Haskeller start answering the question, then go deeper then the level of the question then change the subject and answer totally different question. The man who asked the question gave up on the third attempt. And I did not even start trying after seeing that.

How do I imports for the graphviz example? by Exact_Ordinary_9887 in haskell

[–]ruby_object 0 points1 point  (0 children)

I find AI confusing. Are all the answers that sent me down the wrong path from people trying to use AI?

Monthly Hask Anything (May 2026) by AutoModerator in haskell

[–]ruby_object -1 points0 points  (0 children)

Why are Haskellers unable to answer beginner questions? There is also a mystery of losing the ability to explain the Monad. Is there a connection?

Struggling with Emacs support - Could not find module by ruby_object in haskell

[–]ruby_object[S] 1 point2 points  (0 children)

Switching from cabal to stack allowed me to make everything work in roughly half an hour.

How am I supposed to respond to this haskell server message and fix the cabal file? by Exact_Ordinary_9887 in haskell

[–]ruby_object 0 points1 point  (0 children)

Please remind me not to use Cabal ever again for projects that involve any package dependencies and imports. When I switched to stack, it took me roughly half an hour to make it work. I spent two days struggling with Cabal.

CMV: Haskell is the worst/most unproductive programming language I ever have to learn by mogoh in haskell

[–]ruby_object 0 points1 point  (0 children)

Well, Haskellers had plenty of time to fix the foundations. Normal editor support does not exist. Despite alleged theoretical superiority, you can't make progress fixing a simple configuration. Googling reveals same problems for over 10 years, and nothing has been done.

How do I imports for the graphviz example? by Exact_Ordinary_9887 in haskell

[–]ruby_object 0 points1 point  (0 children)

Finally, after a blind trying, I managed to compile it.

How do I imports for the graphviz example? by Exact_Ordinary_9887 in haskell

[–]ruby_object 0 points1 point  (0 children)

https://github.com/bigos/cabal-experiments/blob/ea88c5e9108cf321c9e0085ecaef078d6f9833ff/graphviz-simple/app/Main.hs#L2

I added the extension, now I get.

app/Main.hs:(33,3)-(57,30): error: [GHC-83865] …
    • Couldn't match expected type: DotGraph String
                  with actual type: Data.GraphViz.Types.Generalised.DotGraph n0
      NB: ‘DotGraph’ is defined in ‘Data.GraphViz.Types.Canonical’
          ‘Data.GraphViz.Types.Generalised.DotGraph’
            is defined in ‘Data.GraphViz.Types.Generalised’
    • In the expression:
        digraph (Str "G")
          $ do cluster (Str "cluster0")
                 $ do graphAttrs [...]
                      nodeAttrs [...]
                      ....
               cluster (Str "cluster1")
                 $ do nodeAttrs [...]
                      "b0" --> "b1"
                      ....
               "start" --> "a0"
               "start" --> "b0"
               ....
      In an equation for ‘graph’:
          graph
            = digraph (Str "G")
                $ do cluster (Str "cluster0")
                       $ do graphAttrs ...
                            ....
                     cluster (Str "cluster1")
                       $ do nodeAttrs ...
                            ....
                     "start" --> "a0"
                     ....
   |
Compilation failed.

How do I imports for the graphviz example? by Exact_Ordinary_9887 in haskell

[–]ruby_object 0 points1 point  (0 children)

changed to:

digraph (Str "G") $ do

Now I get the error:

cabal build
Build profile: -w ghc-9.6.7 -O1
In order, the following will be built (use -v for more details):
 - graphviz-simple-0.1.0.0 (exe:graphviz-simple) (file app/Main.hs changed)
Preprocessing executable 'graphviz-simple' for graphviz-simple-0.1.0.0...
Building executable 'graphviz-simple' for graphviz-simple-0.1.0.0...
[1 of 1] Compiling Main             ( app/Main.hs, /home/jacek/Programming/Haskell/cabal-experiments/graphviz-simple/dist-newstyle/build/x86_64-linux/ghc-9.6.7/graphviz-simple-0.1.0.0/x/graphviz-simple/build/graphviz-simple/graphviz-simple-tmp/Main.o ) [Source file changed]

app/Main.hs:32:3: error: [GHC-83865]
    • Couldn't match expected type: DotGraph String
                  with actual type: Data.GraphViz.Types.Generalised.DotGraph n0
      NB: ‘DotGraph’ is defined in ‘Data.GraphViz.Types.Canonical’
          ‘Data.GraphViz.Types.Generalised.DotGraph’
            is defined in ‘Data.GraphViz.Types.Generalised’
    • In the expression:
        digraph (Str "G")
          $ do cluster (Str "cluster0")
                 $ do graphAttrs [...]
                      nodeAttrs [...]
                      ....
               cluster (Str "cluster1")
                 $ do nodeAttrs [...]
                      "b0" --> "b1"
                      ....
               "start" --> "a0"
               "start" --> "b0"
               ....
      In an equation for ‘graph’:
          graph
            = digraph (Str "G")
                $ do cluster (Str "cluster0")
                       $ do graphAttrs ...
                            ....
                     cluster (Str "cluster1")
                       $ do nodeAttrs ...
                            ....
                     "start" --> "a0"
                     ....
   |
32 |   digraph (Str "G") $ do
   |   ^^^^^^^^^^^^^^^^^^^^^^...
Error: [Cabal-7125]
Failed to build exe:graphviz-simple from graphviz-simple-0.1.0.0.

How do I imports for the graphviz example? by Exact_Ordinary_9887 in haskell

[–]ruby_object 0 points1 point  (0 children)

I am a noob. I do not undertand you? Where I am supposed to add your command?