This is for a Windows host.
See other material by ocharles, ocharles (new), Fūzetsu, Pavel Kogan.
See mailing list post on haskell-ng. This is still unresolved for me.
Create a new VM
root@ubuntu:/mnt/test# fio --name=randwrite --ioengine=libaio --iodepth=1 --rw=randwrite --bs=4k --direct=0 --size=512M --numjobs=8 --runtime=240 --group_reporting | |
randwrite: (g=0): rw=randwrite, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1 | |
... | |
fio-3.1 | |
Starting 8 processes | |
randwrite: Laying out IO file (1 file / 512MiB) | |
fio: native_fallocate call failed: Operation not supported | |
randwrite: Laying out IO file (1 file / 512MiB) | |
fio: native_fallocate call failed: Operation not supported | |
randwrite: Laying out IO file (1 file / 512MiB) |
> Executing task: C:\Users\chris\.platformio\penv\Scripts\platformio.exe run --verbose < | |
Processing megaatmega2560 (platform: atmelavr; lib_ldf_mode: deep; board: megaatmega2560; framework: arduino) | |
----------------------------------------------------------------------------------------------------------------------------------- | |
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/megaatmega2560.html | |
PLATFORM: Atmel AVR > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560) | |
HARDWARE: ATMEGA2560 16MHz 8KB RAM (248KB Flash) | |
Library Dependency Finder -> http://bit.ly/configure-pio-ldf | |
LDF MODES: FINDER(deep) COMPATIBILITY(soft) | |
Collected 24 compatible libraries |
> Executing task: C:\Users\chris\.platformio\penv\Scripts\platformio.exe run --verbose < | |
Processing megaatmega2560 (platform: atmelavr; lib_ldf_mode: deep+; board: megaatmega2560; framework: arduino) | |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/megaatmega2560.html | |
PLATFORM: Atmel AVR > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560) | |
HARDWARE: ATMEGA2560 16MHz 8KB RAM (248KB Flash) | |
Library Dependency Finder -> http://bit.ly/configure-pio-ldf | |
LDF MODES: FINDER(deep+) COMPATIBILITY(soft) | |
Collected 24 compatible libraries |
$ nix-env -f https://github.com/obsidiansystems/obelisk/archive/master.tar.gz -iA command | |
unpacking 'https://github.com/obsidiansystems/obelisk/archive/master.tar.gz'... | |
building '/nix/store/dlyn7wzl825ks2h0wpk19mg8qf0kkv8v-cabal2nix-obelisk-command.drv'... | |
installing | |
replacing old 'obelisk-command-0.1' | |
installing 'obelisk-command-0.1' | |
these derivations will be built: | |
/nix/store/lx03y7g388cg1zdfal3qvv3v7riz1ssi-optparse-applicative-0.14.0.0.drv | |
/nix/store/51pzlz7b2s9nh3afcwpmk2r341dymfr3-tasty-0.11.2.5.drv | |
/nix/store/d67ip5wfchmw2jdx81z48235aa2yhk2i-tasty-hunit-0.9.2.drv |
$ ob run | |
warning: in configuration file '/etc/nix/nix.conf': unknown setting 'trusted-public-keys' | |
building '/nix/store/d5pnf3knrd73kvr1zz0ydm4k8rkpwcs0-source.drv'... | |
trying https://github.com/obsidiansystems/obelisk/archive/ffce7c5f17e164f64cdae15895b30cefebbd7095.tar.gz | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 165 0 165 0 0 632 0 --:--:-- --:--:-- --:--:-- 632 | |
100 130k 0 130k 0 0 216k 0 --:--:-- --:--:-- --:--:-- 216k | |
unpacking source archive /private/tmp/nix-build-source.drv-0/ffce7c5f17e164f64cdae15895b30cefebbd7095.tar.gz |
-- Initial buildtools-test.cabal generated by cabal init. For further | |
-- documentation, see http://haskell.org/cabal/users-guide/ | |
name: buildtools-test | |
version: 0.1.0.0 | |
-- synopsis: | |
-- description: | |
-- license: | |
license-file: LICENSE | |
author: Christian Conkle |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE DeriveFunctor #-} | |
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE DeriveFoldable, DeriveTraversable #-} | |
{-# LANGUAGE NoMonomorphismRestriction #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
module Main where | |
import Control.Applicative |
This is for a Windows host.
See other material by ocharles, ocharles (new), Fūzetsu, Pavel Kogan.
See mailing list post on haskell-ng. This is still unresolved for me.
Create a new VM
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE GADTs #-} | |
module TestInline (modified, modified_field2, with_field2, get_field2, get_nolens) where | |
import Data.Vinyl | |
import Data.Functor.Identity | |
-- compile with | |
-- cabal build --ghc-option=-ddump-simpl --ghc-option=-dsuppress-all --ghc-option=-O2 | |
type Field1 = "Field1" ::: String |
{-# LANGUAGE StandaloneDeriving, FlexibleInstances, FlexibleContexts, UndecidableInstances, DeriveFunctor, GADTs, DataKinds, KindSignatures, TypeFamilies, PolyKinds, RankNTypes, ConstraintKinds, MultiParamTypeClasses, TypeOperators, ScopedTypeVariables, RecursiveDo, OverlappingInstances #-} | |
module Main where | |
import Data.Functor.Identity | |
import Data.Functor.Compose | |
import Data.Functor.Constant | |
import Data.Functor.Product | |
import Control.Applicative | |
import Data.Vinyl |