Skip to content
#

Haskell

haskell logo

Haskell is a functional (that is, everything is done with function calls), statically, implicitly typed (types are checked by the compiler, but you don't have to declare them), lazy (nothing is done until it needs to be) language.

Here are 6,184 public repositories matching this topic...

Yanpas
Yanpas commented Jan 22, 2020

array=( $var ) splits by both newlines and spaces, which is used in my code.

The alternatives mentioned split either by space, either by newline. Demo:

yan@yPC:~$ v=$(echo a; echo b; echo c)
yan@yPC:~$ echo $v
a b c
yan@yPC:~$ a1=( $v )
yan@yPC:~$ echo ${a1[*]}
a b c
yan@yPC:~$ echo "$v"    
a
b
c
yan@yPC:~$ read -ra a2 <<< "$v"
yan@yPC:~$ echo ${a2[*]}       
a
yan@yPC
martinlester
martinlester commented Nov 29, 2019

I am writing a document with nested lists, like this:

1. (a) foo

   (b) bar

---

1. asdf

   (a) foo

   (b) bar

When I render to a PDF, it looks as I would like. The first line contains "1. (a) foo".

When I render to HTML, there is a line break after "1.". However, the HTML appears semantically to match what I wrote, so I suppose this is just a quirk of HTML rende

lk-geimfari
lk-geimfari commented Aug 30, 2019

Well, we need to check all the projects and remove outdated ones.

We declare this in the readme:

However, keep in mind that we don't accept mammoth's shit. Only active and interesting projects with good documentation are added. Dead and abandoned projects will be removed.

But, sadly at this moment, this project looks like a mammoth shit itself.

We really need to fix it. I think

porglezomp
porglezomp commented Oct 11, 2019

I went to godbolt in the middle of the night and found it extremely bright and started wondering if it could respect the system setting.

There is a CSS media feature prefers-color-scheme which indicates whether the user prefers light or dark mode. It might be nice to make the default dark mode if the user hasn't explicitly picked one yet be "System" and using the prefers-color-scheme settin

yihuang
yihuang commented Aug 2, 2019

Below is the error message when it happens, the file output/Data.String.CodeUnits/docs.json is empty. Work around is to delete the file and run it again.
It happens occasionally, I've tried to delete whole output directory, but it doesn't happen again.

$ spago docs -f ctags
Generating documentation for the project. This might take a while..
purs: An internal error occurred during co
SuperSandro2000
SuperSandro2000 commented Feb 15, 2020
  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

Suggestion

Yarn can generate quite large caches that can easily be 100MB or 300MB big.
I think hadolint should tell you to use yarn cache clean in the same layer you installed something to avoid keeping those caches in the final image.

aryairani
aryairani commented Jan 14, 2020

To the extent that Input and Output are separate to support easily porting the shell of UCM from one UI (CLI) to another (HTML), it's worth noting that the Input message of one is generally not meaningful in another.

If there are specific values in the Input constructor that are relevant to the output, just copy them into the Output constructor instead of passing through an arbitrary

fendor
fendor commented Feb 6, 2020
> .\cabal-hie-install help

********************************************************************************
No ghc installations found in $PATH.
The script requires at least one ghc in $PATH to be able to build hie.

********************************************************************************

No ghc installations found in $PATH.
The script requires at least one ghc in $PATH
trenttobler
trenttobler commented Feb 17, 2018

Looks like some changes made from String to JSStr broke at least this example.

I was just exploring haste / client side javascript generation from Haskell, and encountered this. I've created a patch for the one example I was working on.

I am not sure if this is the correct fix, but compiles and runs. Chrome run-time error "Tainted canvases may not be exported" occurred, but did not seem t

MisterY
MisterY commented May 13, 2019

As an intermediate step towards #1015, and various parts thereof, would it be possible to ignore the syntax for features not currently supported, yet use the parts which are supported in trades?
I'm thinking out loud and wondering what effects this may have.

My end goal here is to be able to read a data file https://gitlab.com/snippets/1856416 without errors. Hledger would be able to parse thi

TerrorJack
TerrorJack commented Nov 28, 2019

Following #338, we should be able to avoid running parcel at link-time and instead ship a pre-bundled rts.js. Some minor adjustments in the js codegen, and the browser backend can take advantage of rts.js and use it to initialize multiple instances at once.

Besides improving linking speed, this also means we can drop npm-utils, which uses a custom Setup.hs to do npm install...whic

axcmp
axcmp commented Sep 12, 2019

Suggesting the implementation of logarithmic and exponential functions into Tidal.

log function prototype

log x base

Base could be optional, with e being the default value.

Example results:

log 1000 == 6.907755278982137

log 1000 10 == 3

log 1000 2 == 9.965784284662087

etc.

d1 $ s “sample”
	# speed (slow 2 $ log ((run 100) + 1) 100)

exp funct

cdsmith
cdsmith commented Dec 15, 2019

Many of the teacher-facing features of CodeWorld are not well documented. This includes:

  1. The requirements checker, useful for additional feedback.
  2. Import by hash, useful for designed exercises with domain-specific framework or scaffolding.
  3. The CodeWorld.Image module, useful for more easily importing educational assets.
  4. The CodeWorld.Parameter module (#1243), useful for easy inte

Released 1990

Organization
haskell
Website
www.haskell.org
Wikipedia
Wikipedia
You can’t perform that action at this time.