Comments (1)
The code compiles, if the type signature :: DelayedMask RGBPixel
is added to the i'
variable:
let i' = maskImage rgb :: DelayedMask RGBPixel
The problem arised as the fromFunction
, and thus, the maskImage
function are polymorphic ie. there type signature uses a type variable. At compile time, the compiler has to known the concrete type of this variable, thus, the type has to be specified explicitely or the compiler has to be able to infer the value. The type signature defines the type explicetly ie. it tells the compiler, that the application of the maskImage
function results in a masked image of rgb pixels. Similiarly, if the convert function is used, the types have be instances of the corresponding typeclass, and the output type has to be specified by a type signature if it cannot be infered otherwise.
from friday.
Related Issues (20)
- Remove the hard dependency between friday and DevIL HOT 3
- Add Otsu threshholding
- Add SCW HOT 3
- Add contour support HOT 2
- Consider providing a bridge to JuicyPixels for IO HOT 13
- API thoughts HOT 3
- Warnings when compiling my code using the Friday library: "match_co: needs more cases" HOT 1
- Bicubic interpolation
- Any thoughts on supporting pixels with more the 8bit per channel? HOT 1
- Q: indication from creating an image painting a rectangle with specified rgb HOT 9
- Add MSER and SWT
- Add pre-multiplied RGBA
- Add to Stackage
- Blurring RGB images?
- Does not compile with stackage lts-7 & ghc-8 HOT 5
- Compile failure with pre-AMP base HOT 1
- draw shapes
- containers dependency range is too tight
- Test-suite failure for friday-0.2.3.2 on stackage ghc-9.4.5/nightly-2023-06-19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from friday.