git.iko.soy/rowtype-yoga/purescript-yoga-postgres
on main help sign in
20 lines 475 B history raw
1-- EXPECT: Lacks
2module Test.CompileFail.WhereAfterOrderBy where
4import Prelude
5import Data.Maybe (Maybe(..))
6import Type.Function (type (#))
7import Type.Proxy (Proxy(..))
8import Yoga.Postgres.Schema
10type UsersTable = Table "users"
11 ( id :: Int # PrimaryKey # AutoIncrement
12 , name :: String
13 , email :: String # Unique
14 , age :: Maybe Int
15 )
17usersTable :: Proxy UsersTable
18usersTable = Proxy
20bad = from usersTable # selectAll # orderBy @"name" # where_ @"id = $id"