注意: こちらもご参照ください fialyzer環境開発構築2019.md
fialyzer の開発環境を構築する方法 2018
- opam 2.0.0
- ocaml 4.07.1
- dune 1.2.1
注意: こちらもご参照ください fialyzer環境開発構築2019.md
fialyzer の開発環境を構築する方法 2018
この記事は Scala Advent Calendar 2016(Adventar) 10日目の記事です。
今は 12/10 の 625時です。年明けなんて無かった。いいね?
さてさて、sbt の依存jarのダウンロードが遅い、というのは割とよく言われる事であります。
で、この原因の一旦に、sbtが Apache Ivy を使っている、という点があります。
| class TC[A](val x: String) | |
| object TC { | |
| def getX[A: TC](a: A): String = implicitly[TC[A]].x | |
| implicit def anyTC[A]: TC[A] = new TC[A]("*") | |
| implicit val stringTC: TC[String] = new TC[String]("String") | |
| } | |
| object Example { |
| class A() { | |
| init { | |
| val s: String = getStr() | |
| println("${s.length}") // java.lang.NullPointerException | |
| } | |
| fun getStr(): String { | |
| return str | |
| } | |
自分がインストールしたとき (2022年9月) の参考用のメモです。
(情報が古くなっている可能性があります)
**<<<現在では より新しい MSYS2/MinGW-w64 UCRT64 (64bit) の開発環境もあります>>>
MSYS2/MinGW-w64 UCRT64 (64bit) 開発環境のインストールについては、
以下のページの方を参照ください。
https://gist.github.com/Hamayama/7810d2a1a59a872a2fbc271345151f77
| package p | |
| /** Super basic map/flatMap fusion ADT. | |
| */ | |
| sealed trait View[A] { | |
| def map[B](f: A => B): View[B] = CView(this, Mapped(f)) | |
| def flatMap[B](f: A => View[B]): View[B] = CView(this, FlatMap(f)) | |
| def foreach(f: A => Unit): Unit = this match { | |
| case IdView(xs) => xs foreach f |
| package com.example | |
| case class Foo[F[_], A](step: F[Foo.Step[A]]) | |
| object Foo { | |
| class Step[A] | |
| object Done { | |
| def unapply[A](a: Step[A]): Boolean = true | |
| } | |
| } |
| import javafx.application.Application | |
| import javafx.event.EventHandler | |
| import javafx.scene.input.MouseEvent | |
| import javafx.stage.Stage | |
| import javafx.scene.{Scene, Group} | |
| import javafx.scene.control.Button | |
| import scalaz.concurrent.Future | |
| class GUI extends Application { |
| package sample | |
| import akka.actor._ | |
| object Main{ | |
| def main (args: Array[String]) { | |
| val system = ActorSystem("aaa") | |
| system.eventStream.subscribe(system.actorOf(Props[DeadLetterLogger]), classOf[DeadLetter]) | |
| val a = system.actorOf(Props[Parent], "parent") | |
| Thread.sleep(3000) |