Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 5.6k
    • Issues 5.6k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 662
    • Merge requests 662
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Wiki
  • Proposal
  • custom type errors

custom type errors · Changes

Page history
Remove leading space from markdown link labels authored Mar 14, 2019 by Tobias Dammers's avatar Tobias Dammers
Hide whitespace changes
Inline Side-by-side
proposal/custom-type-errors.md
View page @ 91eb4a8d
......@@ -350,7 +350,7 @@ get :: forall l fs n a.
get (Struct p) _ = plusPtr p (fromInteger (natVal (Proxy :: Proxy n)))
type MyStruct = [ '("A",Word8), '("B",Word8), '("C",Int) ]
type MyStruct = ['("A",Word8), '("B",Word8), '("C",Int) ]
testOk :: Struct MyStruct -> Ptr Word8
testOk s = get s (Proxy :: Proxy "B")
......@@ -362,7 +362,7 @@ testNotOk s = get s (Proxy :: Proxy "X")
--}
{-
type MyOtherStruct = [ '("A",Int), '("B",Word8) ]
type MyOtherStruct = ['("A",Int), '("B",Word8) ]
testNotOk :: Struct MyOtherStruct -> Ptr Word8
testNotOk s = get s (Proxy :: Proxy "B")
......
Clone repository
  • Adventures in GHC compile times
  • All things layout
  • AndreasK
  • AndreasPK
  • Back End and Run Time System
  • Backpack refactoring
  • Backpack units
  • Brief Guide for Compiling GHC to iOS
  • Building GHC on Windows with Stack protector support (SSP) (using Make)
  • CAFs
  • CafInfo rework
  • Compiling Case Expressions in ghc
  • Compiling Data.Aeson Error
  • Contributing a Patch
  • Core interface section
View All Pages