Questions tagged [vinyl]

Vinyl is a general solution to the records problem in Haskell using type level strings and other modern GHC features, featuring static structural typing (with a subtyping relation), and automatic row-polymorphic lenses.

Vinyl is a general solution to the records problem in Haskell using type level strings and other modern GHC features, featuring static structural typing (with a subtyping relation), and automatic row-polymorphic lenses. All this is possible without Template Haskell.

23 questions
1
vote
1 answer

What is the difference between len() and count() for the Vinyl engine?

I have different results for space:len() and space:count() for a space with a vinyl engine. What do these methods return?
1
vote
1 answer

How can I constrain Vinyl / Composite Records?

I have an extensible Vinyl / Composite record (similar to HList, Frames...), and I would like to generate the tuples of keys/values, such as tuplify '[String :-> Whatevs, ...] :: [(String, String)] This is surprisingly hard. original gist. Solution…
Josh.F
  • 3,666
  • 2
  • 27
  • 37
1
vote
1 answer

My gulp plugin with through2 returns file in strange XML-like format

I'm writing plugin for Gulp, and in order to process file i need to get it's full path. I used through2 package, then prepared processFile(file) function, but as an argument from through2 it receives file in strange XML-like format instead of object…
Dariusz Sikorski
  • 4,309
  • 5
  • 27
  • 44
1
vote
1 answer

How can process.stdin be used as the start point for a gulp task?

I'm using gulp to convert SCSS into CSS code with the gulp-sass plugin. This is all working fine, but I also want to use gulp to receive input (SCSS code) from a Unix pipe (i.e. read process.stdin) and consume this and stream the output to…
Euan
  • 399
  • 1
  • 12
1
vote
0 answers

vinyl-ftp does not upload the exists folder

My code: var conn = ftp.create(config['tmt_preview']); gulp.src('./dist/**/*.*', {base: '.', buffer: false}) .pipe(conn.newerOrDifferentSize('/project')) .pipe(conn.dest('/project')); Console outputs: [15:40:04] Starting…
little du
  • 41
  • 1
1
vote
0 answers

Filter vinyl records by type

Using the vinyl library, is there a way to filter out a set of records by either their type, or some other property? I want to be able to mix in the values of shader uniforms with other properties of my objects, and be able to extract them later to…
Dan
  • 12,409
  • 3
  • 50
  • 87
0
votes
1 answer

througt module accepts only 8/16 files

I am currently working with throught2 module to write gulp plugin to replace something in the buffer, below is a simplified version of it module.exports = function(replaceData: DataChange | DataChange[]) { let count = 0; return…
dfostic
  • 1,608
  • 15
  • 8
0
votes
1 answer

vinyl ftp Cannot create a file when that file already exists

I'm getting an error when trying to deploy my stuff with [vinyl ftp]. here's the log: [12:16:46] MLSD / [12:16:46] LIST /httpdocs/config [12:16:46] LIST / [12:16:46] MLSD /httpdocs/config/Lang [12:16:46] MKDIR /httpdocs/config events.js:72 …
NinjaOnSafari
  • 998
  • 1
  • 8
  • 32
1
2