const package:hledger-web

const x y always evaluates to x, ignoring its second argument.
const x = \_ -> x
This function might seem useless at first glance, but it can be very useful in a higher order context.

Examples

>>> const 42 "hello"
42
>>> map (const 42) [0..3]
[42,42,42,42]
A ConstraintNameDB represents the datastore-side name that persistent will use for a constraint.
An ConstraintNameHS represents the Haskell-side name that persistent will use for a constraint.
Specify a name for the constraint on the foreign key reference for this table.
Post
title    Text

Comment
postId   PostId constraint="my_cool_constraint_name"