GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - victor/lambda-rays: Ray Tracer challenge, in Haskell

BranchesTags
Open more actions menu

Latest commit

 

History

55 Commits
55 Commits

Folders and files

NameName
Last commit message
Last commit date
src-benchmark
src-benchmark
 
 
src-doctest
src-doctest
 
 
src-exe
src-exe
 
 
src-test
src-test
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Setup.hs
Setup.hs
 
 
lambda-rays.cabal
lambda-rays.cabal
 
 
stack.yaml
stack.yaml
 
 

Repository files navigation

lambda-rays

Build Status

New Haskell project using stack template tasty-travis.

Please read file tutorial.md for first steps in using the template.

Notes

[x] Use vmap to avoid code repetition [ ] Refactor internal implementation to use a list, which will allow more expresiveness in algorithms

In this branch (generalization-attempt) I tried to make Quadruple not be bound to Double, but to use any type conforming to Floating (that is, Double or Float). This triggered a series of warnings about how the compiler was defaulting to using Double, but warnings are treated as errors and thus tests can't be built and run. Disabling -WError makes tests build and pass. See https://www.haskell.org/tutorial/numbers.html#sect10.4 https://www.haskell.org/onlinereport/decls.html#default-decls

If we force-cast all numbers used as function parameters to Double (as in the first test), or the first occurence in each shouldBe, then no warnings are raised. However, that much verbosity makes the code cumbersome to write and read. Therefore, we selectively disable those warnings with {-# OPTIONS_GHC -fno-warn-type-defaults #-}

About

Ray Tracer challenge, in Haskell

Resources

Readme
ISC license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.