1-- EXPECT: NoInstanceFound
2module Test.CompileFail.JoinSelectBeforeJoin where
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
15type PostsTable = Table "posts"
16 ( id :: Int # PrimaryKey # AutoIncrement
21usersTable :: Proxy UsersTable
24postsTable :: Proxy PostsTable
29 # innerJoin @"users.id = posts.user_id" postsTable
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list