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
{ stdenv, lib, bash, callPackage, writeText, makeWrapper, writeScript, dotnet-sdk, | |
patchelf, libunwind, coreclr, libuuid, curl, zlib, icu }: | |
let | |
config = "Staging"; | |
project = "RazorCx.Api"; | |
target = "linux-x64"; | |
rpath = stdenv.lib.makeLibraryPath [ libunwind coreclr libuuid stdenv.cc.cc curl zlib icu ]; |
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
newtype FizzBuzz = FizzBuzz Int | |
instance Show FizzBuzz where | |
show (FizzBuzz i) | |
| iDivisibleBy 15 = "Fizz Buzz" | |
| iDivisibleBy 5 = "Buzz" | |
| iDivisibleBy 3 = "Fizz" | |
| otherwise = show i | |
where | |
iDivisibleBy n = i `rem` n == 0 |