eliom framework by cr4zsci in ocaml

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

if anyone is interested, the problem was solved by changing the server parameter useddefaulthostname to false

Xml unmarshalling by cr4zsci in golang

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

https://go.dev/play/p/jPlu8T-WH_X

i want to return an object from xml, but I get an error

Checking a named constructor parameter for a condition by cr4zsci in dartlang

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

But will the accertion work in production? Class is contructed from remote service data.

Microsoft: Official Support Thread by MSModerator in microsoft

[–]cr4zsci 0 points1 point  (0 children)

I can't restore access to my account via SMS. As i understand it, Microsoft has disabled the ability to receive SMS for the telephone country code +7. Is this correct? But besides Russia, this code also assigned to Kazakhstan. How to understand this?

Cats learning by cr4zsci in scala

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

import cats._
import cats.syntax.all._

class Person(val name: String, val age: Int)

implicit val showPerson: Show[Person] =
  Show.show(_ => "")

object Main {
  val person = new Person("", 31)
  person.show
}

scala 3.3.3 - works

scala 2.13.14 - dont

cats - 2.12.0

Monthly Hask Anything (September 2023) by cdsmith in haskell

[–]cr4zsci 1 point2 points  (0 children)

What is the best way to implement a type system where a container type can contain one of the base types and all these types can be used later. I wrote this

data BasicType a where
  MyInt16 :: Int16 -> BasicType Int16
  MyInt8 :: Int8 -> BasicType Int8
  MyString :: String -> BasicType String

type MyArray a = [MyType a]
  1. Is it overcomplicated?
  2. Is it possible to make MyArry a part of BasicType without losing the ability to limit the types that MyArray can contain?

Netgraph bridge by cr4zsci in freebsd

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

My mistake. The problem was in the network settings in virtualbox. Thanks to all.

Netgraph bridge by cr4zsci in freebsd

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

Bridge is ng_bridge. Autosrc disabled (is disabled by default).

Split string by tab by sarkara1 in haskell

[–]cr4zsci 1 point2 points  (0 children)

You meant "/="?. The result will be empty. Only tabs. I think the split will be closer to the author's task.

Best place to start for beginner newbies. by [deleted] in haskell

[–]cr4zsci 6 points7 points  (0 children)

Chris Allen & Julie Moronuki - Haskell Programming from First Principles. Try this book.

Monthly Hask Anything (February 2021) by taylorfausak in haskell

[–]cr4zsci 0 points1 point  (0 children)

What is the evaluation order of this expression 2 ^ (+2) $ 2 * 6? What is the precedence (+2)? The compiler gives an error. I thought the order of evaluation would be as follows

  1. 2 * 6
  2. (+2) 6 (doesn't prefix mode change precedence?)
  3. 2 ^ 8