this post was submitted on 18 Jun 2023
4 points (100.0% liked)

Haskell

65 readers
3 users here now

**The Haskell programming language community.** Daily news and info about all things Haskell related: practical stuff, theory, types, libraries, jobs, patches, releases, events and conferences and more... ### Links - Get Started with Haskell

founded 1 year ago
 

Since this is a very new community, let's take a moment to introduce ourselves in this thread. Please share your interests and what you are working on!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 0 points 1 year ago (2 children)

Do code-blocks work better than on reddit for mobile?

Fenced code block:

module Main where

main :: IO ()
main = do
    putStrLn "Hello, kbin!"

Indented 4 spaces:

module Main where

main :: IO ()
main = do
    putStrLn "Hello, kbin!"

update: Oh wow, looks like only inline code fragements work? Something like main = putStrLn "Hello, kbin!"
update 2: No syntax highlighting at all! That's probably a show-stopper.

[–] [email protected] 1 points 1 year ago

Styling for code blocks has been merged: https://codeberg.org/Kbin/kbin-core/pulls/494. I hope it goes live here soon.

[–] [email protected] 1 points 1 year ago

AFAIK Reddit also doesn't have syntax highlighting, or does it? The blocks and inline code in your comment does render in a monospace font, so that's a good first step. I also believe kbin is still very new and might get more features like syntax highlighting in the future.