-- EXPECT: Trailing comma in ORDER BY clause module Test.CompileFail.TrailingCommaInOrderBy where import Prelude import Data.Maybe (Maybe(..)) import Type.Function (type (#)) import Type.Proxy (Proxy(..)) import Yoga.Postgres.Schema type UsersTable = Table "users" ( id :: Int # PrimaryKey # AutoIncrement , name :: String , email :: String # Unique , age :: Maybe Int ) usersTable :: Proxy UsersTable usersTable = Proxy bad = from usersTable # selectAll # orderBy @"name,"