Questions tagged [hpack]
20 questions
6
votes
1 answer
Building multiple executables in the default Haskell Stack project
I used the default stack new to setup a project that has a server and a client as separate executables. I altered the package.yaml file in what seems like the right way (As of April 21, 2020 "There is no user guide") and added a new file to my app…

John F. Miller
- 26,961
- 10
- 71
- 121
6
votes
1 answer
How does one have multiple libraries using hpack?
I'd like to organize my project into different libraries, since eventually I may be splitting some out to external repositories.
In a .cabal file I can have multiple libraries (one unnamed, and multiple named, I believe):
library
import:…

bbarker
- 11,636
- 9
- 38
- 62
2
votes
0 answers
How to suppress warnings from external packages?
My stack build shows warning from external packages, like:
happy > /tmp/stack-d6caed253e9f21bf/happy-1.20.0/src/ProduceGLRCode.lhs:224:12: warning: [-Wincomplete-uni-patterns]
176happy > Pattern match(es) are…

Abhijit Sarkar
- 21,927
- 20
- 110
- 219
2
votes
0 answers
Is it possible to have Haskell source files with a different extension?
In any of the build tools commonly used in Haskell projects (i.e stack, cabal, or hpack), is it possible to have a source directory which contains source files with a different extension (i.e. other than *.hs or *.lhs)?
I need to have source files…

Saurabh Nanda
- 6,373
- 5
- 31
- 60
2
votes
0 answers
Using hsc2hs with HPack and Stack
I'd like to use hsc2hs via Stack and HPack. The problem is, since HPack doesn't allow me to list the .hsc file as a source file, only .hs, changes to the .hsc file don't trigger a rebuild in stack build.
My package.yaml file is as follows:
name:…

Cactus
- 27,075
- 9
- 69
- 149
1
vote
0 answers
How to determine what headers are never indexed with HPACK?
How does hpack determine what index values are never to be indexed? The rfc has a section "6.2.3. Literal Header Field Never Indexed", but I'm confused as to how this is determined.

Alex
- 131
- 2
- 13
1
vote
1 answer
Test for GHC compile time errors
I'm working on proto-lens#400 tweaking a Haskell code generator. In one of the tests I'd like to verify that certain API has not been built. Specifically, I want to ensure that a certain type of program will not type check successfully. I'd also…

MvG
- 57,380
- 22
- 148
- 276
1
vote
1 answer
Create custom flags in Haskell
I have a test suite which runs the same test cases with two backends: the in-memory one and the real one, I am trying to create a function which only run the real one when a flag is present.
I have seen it from time to time in Prelude but I cannot…

GlinesMome
- 1,549
- 1
- 22
- 35
1
vote
2 answers
HTTP2 (HPACK) How to derive dynamic decompression table index from the payload
"Request Message 1" is using static table index 31 to send content-type information. Then the entry is added to dynamic table with index value 63. How to derive the dynamic table index value from "Request Message 1"?
Request message 1:
Header:…

rmjp
- 11
- 2
1
vote
1 answer
Hpack or pre-processor platform info
I am using hpack+stack for a project and there is a hardcoded path (used for debugging, I don't want to do this properly) which are differs for mac os x and linux. Right now I have it on a gitignored file on it's own and that file differs between my…

fakedrake
- 6,528
- 8
- 41
- 64
0
votes
0 answers
Description A byte of unknown significance exists in the Headers frame of http2
I used a man-in-the-middle program to get the http2 source data.
I got a HEADERS frame like this after I split and shunt the data I got.
This frame is the first HEADERS frame returned by the server in this connection.
[enter image description…

lmdd
- 1
- 1
0
votes
1 answer
hpack encoding integer significance
After reading this, https://httpwg.org/specs/rfc7541.html#integer.representation
I am confused about quite a few things, although I seem to have the overall gist of the idea.
For one, What are the 'prefixes' exactly/what is their purpose?
For…

user18043747
- 1
- 1
- 4
0
votes
1 answer
http2 duplicate entries in the dynamic table
in the RFC for hpack, it says this...
The dynamic table can contain duplicate entries (i.e., entries with the same name and same value). Therefore, duplicate entries MUST NOT be treated as an error by a decoder
in the table, since the static and…

user18043747
- 1
- 1
- 4
0
votes
0 answers
Does stack rerun hpack not only on build but already on change?
I'm using stack with hpack so that .cabal file is generated from hpack's package.yaml. Often times as I want to switch branch I struggle with constantly changing .cabal file.
I run git restore *.cabal. Working tree is in unstaged state.
Immediately…

zaabson
- 151
- 12
0
votes
1 answer
Dynamic Table Updation Procedure in HTTP2
We have a query regarding our understanding in the stack of HTTP2 Protocol
for Dynamic Table Updation. We want to get a clear understanding of
the procedure for updating the dynamic table in case of remote end sends
header frames in a…

soni
- 77
- 1
- 9