Title: fromUint8Array, toUint8Array · Issue #45 · purescript-contrib/purescript-arraybuffer · GitHub
Open Graph Title: fromUint8Array, toUint8Array · Issue #45 · purescript-contrib/purescript-arraybuffer
X Title: fromUint8Array, toUint8Array · Issue #45 · purescript-contrib/purescript-arraybuffer
Description: I find myself needing to do these casts all the time and I think we should add these to the package. Really these two types are the same type and making them different was a JavaScript design mistake. fromUint8Array :: Uint8Array -> Effe...
Open Graph Description: I find myself needing to do these casts all the time and I think we should add these to the package. Really these two types are the same type and making them different was a JavaScript design mista...
X Description: I find myself needing to do these casts all the time and I think we should add these to the package. Really these two types are the same type and making them different was a JavaScript design mista...
Opengraph URL: https://github.com/purescript-contrib/purescript-arraybuffer/issues/45
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fromUint8Array, toUint8Array","articleBody":"I find myself needing to do these casts all the time and I think we should add these to the package.\r\n\r\nReally these two types are the same type and making them different was a JavaScript design mistake.\r\n\r\n```purescript\r\nfromUint8Array :: Uint8Array -> Effect DataView\r\nfromUint8Array x = DV.part (AT.buffer x) (AT.byteOffset x) (AT.byteLength x)\r\n\r\ntoUint8Array :: DataView -> Effect Uint8Array\r\ntoUint8Array x = AT.part (DV.buffer x) (DV.byteOffset x) (DV.byteLength x)\r\n```","author":{"url":"https://github.com/jamesdbrock","@type":"Person","name":"jamesdbrock"},"datePublished":"2022-05-19T00:07:58Z","url":"https://github.com/purescript-contrib/purescript-arraybuffer/issues/45"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5f2654b1-8ae3-79ec-3f6f-dd800cff5b9d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB54:2EDE49:166011D:1F6517C:6AFC1E5C |
| html-safe-nonce | 2266901925094a079c24e35b29c28f656769f1bac5d24fa5454f11ac28dd855c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjU0OjJFREU0OToxNjYwMTFEOjFGNjUxN0M6NkFGQzFFNUMiLCJ2aXNpdG9yX2lkIjoiNzEwNzE3MDgwOTY5NDIwMzgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6f8c2f81a455db1a8dec4c1748ac6943bb1dcaacd33d06082c732dcc7be7e005 |
| hovercard-subject-tag | issue:1240780779 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/purescript-contrib/purescript-arraybuffer/45/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6c36aad27c7a28a9eb1c23f1c963eca9783c2d60338917a547f464a4d7484146/purescript-contrib/purescript-arraybuffer/issues/45 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c36aad27c7a28a9eb1c23f1c963eca9783c2d60338917a547f464a4d7484146/purescript-contrib/purescript-arraybuffer/issues/45 |
| og:image:alt | I find myself needing to do these casts all the time and I think we should add these to the package. Really these two types are the same type and making them different was a JavaScript design mista... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jamesdbrock |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5d807316d0bce9f30e9356c906e531753532d2b72cc12f2f9024293415492f19 |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript-contrib/purescript-arraybuffer git https://github.com/purescript-contrib/purescript-arraybuffer.git |
| octolytics-dimension-user_id | 7391813 |
| octolytics-dimension-user_login | purescript-contrib |
| octolytics-dimension-repository_id | 30353544 |
| octolytics-dimension-repository_nwo | purescript-contrib/purescript-arraybuffer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 30353544 |
| octolytics-dimension-repository_network_root_nwo | purescript-contrib/purescript-arraybuffer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 47ed8be1e5464ecf338b3e281a263bf600d93455 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width