Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to provide reproducible environments.
Haskell needed updates. This doesn't handle the OCaml and Scala implementations properly.
- Loading branch information
Showing
10 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{-# LANGUAGE DeriveGeneric, DeriveAnyClass #-} | ||
{-# LANGUAGE DeriveGeneric, DeriveAnyClass, DataKinds #-} | ||
module Image (mkImage, writeImage) where | ||
|
||
import Data.Massiv.Array as A | ||
import Data.Massiv.Array.IO | ||
|
||
mkImage :: Int -> Int -> (Int -> Int -> Pixel SRGB Word8) -> Image S SRGB Word8 | ||
mkImage :: Int -> Int -> (Int -> Int -> Pixel (SRGB 'NonLinear) Word8) -> Image S (SRGB 'NonLinear) Word8 | ||
mkImage height width pixel = | ||
makeArrayR S Par (Sz2 height width) (\(i :. j) -> pixel i j) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
packages: . | ||
index-state: 2020-04-13T13:47:47Z | ||
index-state: 2022-05-15T08:27:37Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{ nixpkgs ? import <nixpkgs> {} }: | ||
with nixpkgs; | ||
with import (builtins.fetchTarball { | ||
url = "https://github.com/NixOS/nixpkgs/archive/820177eded91f3908cfc72dfee00e831ea3d0060.zip"; | ||
sha256 = "1yqx5zy154f8057inwjp2ranizgilvpblqq31cy7nryrwj2apics"; | ||
}) {}; | ||
stdenv.mkDerivation { | ||
name = "ray"; | ||
buildInputs = [ zlib zlib.out pkgconfig haskell.compiler.ghc883 cabal-install ]; | ||
buildInputs = [ zlib zlib.out pkgconfig ghc cabal-install ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
with import (builtins.fetchTarball { | ||
url = "https://github.com/NixOS/nixpkgs/archive/820177eded91f3908cfc72dfee00e831ea3d0060.zip"; | ||
sha256 = "1yqx5zy154f8057inwjp2ranizgilvpblqq31cy7nryrwj2apics"; | ||
}) {}; | ||
stdenv.mkDerivation { | ||
name = "ray"; | ||
buildInputs = [ ispc ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
with import (builtins.fetchTarball { | ||
url = "https://github.com/NixOS/nixpkgs/archive/820177eded91f3908cfc72dfee00e831ea3d0060.zip"; | ||
sha256 = "1yqx5zy154f8057inwjp2ranizgilvpblqq31cy7nryrwj2apics"; | ||
}) {}; | ||
stdenv.mkDerivation { | ||
name = "ray"; | ||
# FIXME: this is not enough. See README.md. | ||
buildInputs = [ opam ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
with import (builtins.fetchTarball { | ||
url = "https://github.com/NixOS/nixpkgs/archive/820177eded91f3908cfc72dfee00e831ea3d0060.zip"; | ||
sha256 = "1yqx5zy154f8057inwjp2ranizgilvpblqq31cy7nryrwj2apics"; | ||
}) {}; | ||
stdenv.mkDerivation { | ||
name = "ray"; | ||
buildInputs = [ cargo rustc ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters